diff --git a/Yavsc.Server/Models/IT/Project.cs b/Yavsc.Server/Models/IT/Project.cs index 091110f4..58f0b380 100644 --- a/Yavsc.Server/Models/IT/Project.cs +++ b/Yavsc.Server/Models/IT/Project.cs @@ -15,11 +15,10 @@ namespace Yavsc.Server.Models.IT [Required] public string Name { get; set; } - - [Required] - public string ProjectName { get; set;} - [ForeignKey("Name")] + public long ProjectId { get; set; } + + [ForeignKey("ProjectId")] public virtual Project TargetProject { get; set; } } diff --git a/Yavsc.Server/Models/IT/SourceCode/GitRepository.cs b/Yavsc.Server/Models/IT/SourceCode/GitRepository.cs index 0d45435e..df57ea8e 100644 --- a/Yavsc.Server/Models/IT/SourceCode/GitRepository.cs +++ b/Yavsc.Server/Models/IT/SourceCode/GitRepository.cs @@ -20,5 +20,10 @@ namespace Yavsc.Server.Models.IT.SourceCode [ForeignKey("OwnerId")] public virtual ApplicationUser Owner { get; set; } + + public override string ToString() + { + return $"[Git ref {Path} {Branch} {Url}]"; + } } } \ No newline at end of file diff --git a/Yavsc.Server/project.lock.json b/Yavsc.Server/project.lock.json index 85f3e16d..0ed1f37c 100644 --- a/Yavsc.Server/project.lock.json +++ b/Yavsc.Server/project.lock.json @@ -10966,7 +10966,7 @@ }, "Gapi.net45/1.0.0": { "type": "package", - "sha512": "ZA31xhTPss1akMMgT3PvDNkqI46t9dvkxgyKVnjXKP9OFSNSSxvSomev5Srvq1tXyadCP0cFBM1GkS0qLwTtUg==", + "sha512": "9CdY4Bpoh5KyKjalhY/KpD31vV4zgLA3ocAJsWr8mGB12f3Ttr+CgyR0m4Z5baMG2d5p7UXT8h6KmRpx5LtMUw==", "files": [ "Gapi.net45.1.0.0.nupkg", "Gapi.net45.1.0.0.nupkg.sha512", @@ -11609,7 +11609,7 @@ "Microsoft.Extensions.PlatformAbstractions/1.0.0-rc1-final": { "type": "package", "serviceable": true, - "sha512": "26HS4c6MBisN+D7XUr8HObOI/JJvSJQYQR//Bfw/hi9UqhqK3lFpNKjOuYHI+gTxYdXT46HqZiz4D+k7d+ob3A==", + "sha512": "0b65CFB9nCxENPDjoOGeNaQBK1jhKfjQVcHg2KTWvPr+GaaBNyqmAo+7H+1ZoH6hmEYYl63aEbB1HXPRD4eQlQ==", "files": [ "lib/dotnet5.4/Microsoft.Extensions.PlatformAbstractions.dll", "lib/dotnet5.4/Microsoft.Extensions.PlatformAbstractions.xml", @@ -12158,7 +12158,7 @@ "System.Reflection.Metadata/1.1.0": { "type": "package", "serviceable": true, - "sha512": "a8VsRm/B0Ik1o5FumSMWmpwbG7cvIIajAYhzTTy9VB9XItByJDQHGZkQTIAdsvVJ6MI5O3uH/lb0izgQDlDIWA==", + "sha512": "RLIE4sSt2zngMLuqM6YmxBH99mTumtT4DNZE4+msfEaInUP5iCLQT+BHPl+2cjSAP1pdALyAjLB8RtCB+WGGWQ==", "files": [ "lib/dotnet5.2/System.Reflection.Metadata.dll", "lib/dotnet5.2/System.Reflection.Metadata.xml", diff --git a/Yavsc/Controllers/ProjectController.cs b/Yavsc/Controllers/ProjectController.cs index 7a338937..df86c807 100644 --- a/Yavsc/Controllers/ProjectController.cs +++ b/Yavsc/Controllers/ProjectController.cs @@ -10,6 +10,7 @@ using Microsoft.AspNet.Authorization; using Yavsc.Server.Helpers; using Yavsc.Models.Workflow; using Yavsc.Models.Payment; +using Yavsc.Server.Models.IT.SourceCode; namespace Yavsc.Controllers { @@ -52,18 +53,19 @@ namespace Yavsc.Controllers // GET: Project/Create public IActionResult Create() { - ViewBag.ClientIdItems = _context.ApplicationUser.CreateSelectListItems( u => u.Id, u => u.UserName); ViewBag.OwnerIdItems = _context.ApplicationUser.CreateSelectListItems( u => u.Id, u => u.UserName); ViewBag.ActivityCodeItems = _context.Activities.CreateSelectListItems( a => a.Code, a => a.Name); - ViewBag.PerformerIdItems = _context.Performers.CreateSelectListItems(p => p.PerformerId, p => p.Performer.UserName); + ViewBag.PerformerIdItems = _context.Performers.Include(p=>p.Performer).CreateSelectListItems(p => p.PerformerId, p => p.Performer.UserName); ViewBag.PaymentIdItems = _context.PayPalPayments.CreateSelectListItems (p => p.OrderReference, p => $"{p.Executor.UserName} {p.PaypalPayerId} {p.OrderReference}"); ViewBag.Status = typeof(Yavsc.QueryStatus).CreateSelectListItems(null); + ViewBag.RepositoryItems = _context.GitRepositoryReference.CreateSelectListItems( + u => u.Path, u => u.ToString()); return View(); } @@ -79,19 +81,15 @@ namespace Yavsc.Controllers await _context.SaveChangesAsync(); return RedirectToAction("Index"); } - ViewBag.ClientIdItems = _context.ApplicationUser.CreateSelectListItems( - u => u.Id, u => u.UserName); + ViewBag.ClientIdItems = _context.ApplicationUser.CreateSelectListItems( + u => u.Id, u => u.UserName, project.ClientId); ViewBag.OwnerIdItems = _context.ApplicationUser.CreateSelectListItems( - u => u.Id, u => u.UserName); + u => u.Id, u => u.UserName, project.OwnerId); ViewBag.ActivityCodeItems = _context.Activities.CreateSelectListItems( - a => a.Code, a => a.Name); - ViewBag.PerformerIdItems = _context.Performers.CreateSelectListItems(p => p.PerformerId, p => p.Performer.UserName); + a => a.Code, a => a.Name, project.ActivityCode); + ViewBag.PerformerIdItems = _context.Performers.Include(p=>p.Performer).CreateSelectListItems(p => p.PerformerId, p => p.Performer.UserName, project.PerformerId); ViewBag.PaymentIdItems = _context.PayPalPayments.CreateSelectListItems - (p => p.OrderReference, p => $"{p.Executor.UserName} {p.PaypalPayerId} {p.OrderReference}"); - - ViewBag.Status = typeof(Yavsc.QueryStatus).CreateSelectListItems(null); - - + (p => p.OrderReference, p => $"{p.Executor.UserName} {p.PaypalPayerId} {p.OrderReference}", project.PaymentId); return View(project); } diff --git a/Yavsc/Helpers/PageHelpers.cs b/Yavsc/Helpers/PageHelpers.cs index c382e73b..5910d275 100644 --- a/Yavsc/Helpers/PageHelpers.cs +++ b/Yavsc/Helpers/PageHelpers.cs @@ -28,7 +28,7 @@ namespace Yavsc.Server.Helpers } - public static List CreateSelectListItems (this DbSetdata, + public static List CreateSelectListItems (this IEnumerabledata, Func dataField, Func displayField = null, object selectedValue =null) where T : class { diff --git a/Yavsc/Migrations/20180608011730_gitrefs.Designer.cs b/Yavsc/Migrations/20180608011730_gitrefs.Designer.cs deleted file mode 100644 index 8587c1ef..00000000 --- a/Yavsc/Migrations/20180608011730_gitrefs.Designer.cs +++ /dev/null @@ -1,1809 +0,0 @@ -using System; -using Microsoft.Data.Entity; -using Microsoft.Data.Entity.Infrastructure; -using Microsoft.Data.Entity.Metadata; -using Microsoft.Data.Entity.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20180608011730_gitrefs")] - partial class gitrefs - { - 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.SourceCode.GitRepositoryReference", b => - { - b.Property("Path"); - - b.Property("Url"); - - b.Property("Branch"); - - b.HasKey("Path", "Url", "Branch"); - }); - - 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"); - }); - } - } -} diff --git a/Yavsc/Migrations/20180608011730_gitrefs.cs b/Yavsc/Migrations/20180608011730_gitrefs.cs deleted file mode 100644 index 1010de4f..00000000 --- a/Yavsc/Migrations/20180608011730_gitrefs.cs +++ /dev/null @@ -1,783 +0,0 @@ -using System; -using System.Collections.Generic; -using Microsoft.Data.Entity.Migrations; -using Yavsc.Models; -using Yavsc.Models.Relationship; -namespace Yavsc.Migrations -{ - public partial class gitrefs : 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_LocationType_LocationTypeId", 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: "LocationTypeId", table: "RdvQuery"); - migrationBuilder.DropTable("LocationType"); - migrationBuilder.CreateTable( - name: "GitRepositoryReference", - columns: table => new - { - Path = table.Column(nullable: false), - Url = table.Column(nullable: false), - Branch = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_GitRepositoryReference", x => new { x.Path, x.Url, x.Branch }); - }); - migrationBuilder.AddColumn( - name: "LocationType", - table: "RdvQuery", - nullable: false, - defaultValue: LocationKind.PostalAddress); - 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: "LocationType", table: "RdvQuery"); - migrationBuilder.DropTable("GitRepositoryReference"); - 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: "RdvQuery", - 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_LocationType_LocationTypeId", - table: "RdvQuery", - column: "LocationTypeId", - principalTable: "LocationType", - 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/Yavsc/Migrations/20180610094636_gitRefOwner.Designer.cs b/Yavsc/Migrations/20180610094636_gitRefOwner.Designer.cs deleted file mode 100644 index 5e35c555..00000000 --- a/Yavsc/Migrations/20180610094636_gitRefOwner.Designer.cs +++ /dev/null @@ -1,1818 +0,0 @@ -using System; -using Microsoft.Data.Entity; -using Microsoft.Data.Entity.Infrastructure; -using Microsoft.Data.Entity.Metadata; -using Microsoft.Data.Entity.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20180610094636_gitRefOwner")] - partial class gitRefOwner - { - 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.SourceCode.GitRepositoryReference", b => - { - b.Property("Path"); - - b.Property("Url"); - - b.Property("Branch"); - - b.Property("OwnerId"); - - b.HasKey("Path", "Url", "Branch"); - }); - - 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.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - } - } -} diff --git a/Yavsc/Migrations/20180610094636_gitRefOwner.cs b/Yavsc/Migrations/20180610094636_gitRefOwner.cs deleted file mode 100644 index decdfa6f..00000000 --- a/Yavsc/Migrations/20180610094636_gitRefOwner.cs +++ /dev/null @@ -1,750 +0,0 @@ -using System; -using System.Collections.Generic; -using Microsoft.Data.Entity.Migrations; - -namespace Yavsc.Migrations -{ - public partial class gitRefOwner : 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.AddColumn( - name: "OwnerId", - table: "GitRepositoryReference", - 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_GitRepositoryReference_ApplicationUser_OwnerId", - table: "GitRepositoryReference", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - 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_GitRepositoryReference_ApplicationUser_OwnerId", table: "GitRepositoryReference"); - migrationBuilder.DropColumn(name: "OwnerId", table: "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); - } - } -} diff --git a/Yavsc/Migrations/20180614160254_projectRepo.Designer.cs b/Yavsc/Migrations/20180614160254_projectRepo.Designer.cs deleted file mode 100644 index da14ae12..00000000 --- a/Yavsc/Migrations/20180614160254_projectRepo.Designer.cs +++ /dev/null @@ -1,1821 +0,0 @@ -using System; -using Microsoft.Data.Entity; -using Microsoft.Data.Entity.Infrastructure; -using Microsoft.Data.Entity.Metadata; -using Microsoft.Data.Entity.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20180614160254_projectRepo")] - partial class projectRepo - { - 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.SourceCode.GitRepositoryReference", b => - { - b.Property("Path"); - - b.Property("Branch") - .HasAnnotation("MaxLength", 512); - - b.Property("OwnerId") - .HasAnnotation("MaxLength", 1024); - - b.Property("Url") - .HasAnnotation("MaxLength", 2048); - - b.HasKey("Path"); - }); - - 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.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - } - } -} diff --git a/Yavsc/Migrations/20180614160254_projectRepo.cs b/Yavsc/Migrations/20180614160254_projectRepo.cs deleted file mode 100644 index 78c41c95..00000000 --- a/Yavsc/Migrations/20180614160254_projectRepo.cs +++ /dev/null @@ -1,763 +0,0 @@ -using System; -using System.Collections.Generic; -using Microsoft.Data.Entity.Migrations; - -namespace Yavsc.Migrations -{ - public partial class projectRepo : 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.DropPrimaryKey(name: "PK_GitRepositoryReference", table: "GitRepositoryReference"); - migrationBuilder.AlterColumn( - name: "Branch", - table: "GitRepositoryReference", - nullable: true); - migrationBuilder.AlterColumn( - name: "Url", - table: "GitRepositoryReference", - nullable: true); - migrationBuilder.AddPrimaryKey( - name: "PK_GitRepositoryReference", - table: "GitRepositoryReference", - column: "Path"); - 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.DropPrimaryKey(name: "PK_GitRepositoryReference", table: "GitRepositoryReference"); - migrationBuilder.AlterColumn( - name: "Url", - table: "GitRepositoryReference", - nullable: false); - migrationBuilder.AlterColumn( - name: "Branch", - table: "GitRepositoryReference", - nullable: false); - migrationBuilder.AddPrimaryKey( - name: "PK_GitRepositoryReference", - table: "GitRepositoryReference", - columns: new[] { "Path", "Url", "Branch" }); - 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/Yavsc/Migrations/20180621110734_projects.Designer.cs b/Yavsc/Migrations/20180625113528_Git.Designer.cs similarity index 99% rename from Yavsc/Migrations/20180621110734_projects.Designer.cs rename to Yavsc/Migrations/20180625113528_Git.Designer.cs index 2a0b9285..1e111f8a 100644 --- a/Yavsc/Migrations/20180621110734_projects.Designer.cs +++ b/Yavsc/Migrations/20180625113528_Git.Designer.cs @@ -8,8 +8,8 @@ using Yavsc.Models; namespace Yavsc.Migrations { [DbContext(typeof(ApplicationDbContext))] - [Migration("20180621110734_projects")] - partial class projects + [Migration("20180625113528_Git")] + partial class Git { protected override void BuildTargetModel(ModelBuilder modelBuilder) { @@ -1357,8 +1357,6 @@ namespace Yavsc.Migrations b.Property("Description"); - b.Property("LocalRepo"); - b.Property("Name") .IsRequired(); @@ -1371,9 +1369,6 @@ namespace Yavsc.Migrations b.Property("Previsional"); - b.Property("ProjectName") - .IsRequired(); - b.Property("Rejected"); b.Property("RejectedAt"); @@ -1399,8 +1394,7 @@ namespace Yavsc.Migrations b.Property("Name") .IsRequired(); - b.Property("ProjectName") - .IsRequired(); + b.Property("ProjectId"); b.HasKey("Id"); }); @@ -1904,8 +1898,7 @@ namespace Yavsc.Migrations { b.HasOne("Yavsc.Server.Models.IT.Project") .WithMany() - .HasForeignKey("ProjectName") - .HasPrincipalKey("ProjectName"); + .HasForeignKey("ProjectId"); }); modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => diff --git a/Yavsc/Migrations/20180621110734_projects.cs b/Yavsc/Migrations/20180625113528_Git.cs similarity index 94% rename from Yavsc/Migrations/20180621110734_projects.cs rename to Yavsc/Migrations/20180625113528_Git.cs index 466e6de6..15f7fbc8 100644 --- a/Yavsc/Migrations/20180621110734_projects.cs +++ b/Yavsc/Migrations/20180625113528_Git.cs @@ -1,10 +1,11 @@ using System; using System.Collections.Generic; using Microsoft.Data.Entity.Migrations; +using Yavsc.Models.Relationship; namespace Yavsc.Migrations { - public partial class projects : Migration + public partial class Git : Migration { protected override void Up(MigrationBuilder migrationBuilder) { @@ -50,9 +51,31 @@ namespace Yavsc.Migrations 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_LocationType_LocationTypeId", 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: "LocationTypeId", table: "RdvQuery"); + migrationBuilder.DropTable("LocationType"); + migrationBuilder.CreateTable( + name: "GitRepositoryReference", + columns: table => new + { + Path = table.Column(nullable: false), + Branch = table.Column(nullable: true), + OwnerId = table.Column(nullable: true), + Url = table.Column(nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_GitRepositoryReference", x => x.Path); + table.ForeignKey( + name: "FK_GitRepositoryReference_ApplicationUser_OwnerId", + column: x => x.OwnerId, + principalTable: "AspNetUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + }); migrationBuilder.CreateTable( name: "Project", columns: table => new @@ -65,13 +88,11 @@ namespace Yavsc.Migrations DateCreated = table.Column(nullable: false), DateModified = table.Column(nullable: false), Description = table.Column(nullable: true), - LocalRepo = 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), - ProjectName = table.Column(nullable: false), Rejected = table.Column(nullable: false), RejectedAt = table.Column(nullable: false), Status = table.Column(nullable: false), @@ -83,7 +104,6 @@ namespace Yavsc.Migrations constraints: table => { table.PrimaryKey("PK_Project", x => x.Id); - table.UniqueConstraint("AK_Project_ProjectName", x => x.ProjectName); table.ForeignKey( name: "FK_Project_Activity_ActivityCode", column: x => x.ActivityCode, @@ -122,18 +142,23 @@ namespace Yavsc.Migrations Id = table.Column(nullable: false) .Annotation("Npgsql:Serial", true), Name = table.Column(nullable: false), - ProjectName = table.Column(nullable: false) + ProjectId = table.Column(nullable: false) }, constraints: table => { table.PrimaryKey("PK_ProjectBuildConfiguration", x => x.Id); table.ForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectName", - column: x => x.ProjectName, + name: "FK_ProjectBuildConfiguration_Project_ProjectId", + column: x => x.ProjectId, principalTable: "Project", - principalColumn: "ProjectName", + principalColumn: "Id", onDelete: ReferentialAction.Cascade); }); + migrationBuilder.AddColumn( + name: "LocationType", + table: "RdvQuery", + nullable: false, + defaultValue: LocationKind.PostalAddress); migrationBuilder.AddForeignKey( name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims", @@ -498,8 +523,26 @@ namespace Yavsc.Migrations 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: "LocationType", table: "RdvQuery"); migrationBuilder.DropTable("ProjectBuildConfiguration"); migrationBuilder.DropTable("Project"); + migrationBuilder.DropTable("GitRepositoryReference"); + 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: "RdvQuery", + nullable: true); migrationBuilder.AddForeignKey( name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims", @@ -794,6 +837,13 @@ namespace Yavsc.Migrations principalTable: "AspNetUsers", principalColumn: "Id", onDelete: ReferentialAction.Restrict); + migrationBuilder.AddForeignKey( + name: "FK_RdvQuery_LocationType_LocationTypeId", + table: "RdvQuery", + column: "LocationTypeId", + principalTable: "LocationType", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); migrationBuilder.AddForeignKey( name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery", diff --git a/Yavsc/Migrations/ApplicationDbContextModelSnapshot.cs b/Yavsc/Migrations/ApplicationDbContextModelSnapshot.cs index 075fe6f5..349e769f 100644 --- a/Yavsc/Migrations/ApplicationDbContextModelSnapshot.cs +++ b/Yavsc/Migrations/ApplicationDbContextModelSnapshot.cs @@ -1356,8 +1356,6 @@ namespace Yavsc.Migrations b.Property("Description"); - b.Property("LocalRepo"); - b.Property("Name") .IsRequired(); @@ -1370,9 +1368,6 @@ namespace Yavsc.Migrations b.Property("Previsional"); - b.Property("ProjectName") - .IsRequired(); - b.Property("Rejected"); b.Property("RejectedAt"); @@ -1398,8 +1393,7 @@ namespace Yavsc.Migrations b.Property("Name") .IsRequired(); - b.Property("ProjectName") - .IsRequired(); + b.Property("ProjectId"); b.HasKey("Id"); }); @@ -1903,8 +1897,7 @@ namespace Yavsc.Migrations { b.HasOne("Yavsc.Server.Models.IT.Project") .WithMany() - .HasForeignKey("ProjectName") - .HasPrincipalKey("ProjectName"); + .HasForeignKey("ProjectId"); }); modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => diff --git a/Yavsc/Views/Project/Create.cshtml b/Yavsc/Views/Project/Create.cshtml index d2fbbd53..ba12e0b8 100644 --- a/Yavsc/Views/Project/Create.cshtml +++ b/Yavsc/Views/Project/Create.cshtml @@ -11,6 +11,13 @@

Project


+
+ +
+ + +
+
@@ -34,6 +41,7 @@
+
@@ -47,7 +55,7 @@
- +
diff --git a/Yavsc/Views/Project/Index.cshtml b/Yavsc/Views/Project/Index.cshtml index 2ab3eff1..519a440b 100644 --- a/Yavsc/Views/Project/Index.cshtml +++ b/Yavsc/Views/Project/Index.cshtml @@ -23,9 +23,6 @@ @Html.DisplayNameFor(model => model.Description) - - @Html.DisplayNameFor(model => model.LocalRepo) - @Html.DisplayNameFor(model => model.OwnerId) @@ -70,9 +67,6 @@ @Html.DisplayFor(modelItem => item.Description) - - @Html.DisplayFor(modelItem => item.LocalRepo) - @Html.DisplayFor(modelItem => item.OwnerId) diff --git a/global.json b/global.json index f6696a3e..3efc5304 100644 --- a/global.json +++ b/global.json @@ -9,9 +9,9 @@ "OAuth.AspNet.Server" ], "sdk": { - "version": "2.1.300-preview2-008533", - "runtime": "dotnet", + "version": "1.0.0-rc1-update2", + "runtime": "mono", "architecture": "x64" - } - + }, + "packages": "packages" }