dropping GCM support

This commit is contained in:
2019-05-08 01:35:10 +01:00
parent d3e57ba2d1
commit f9364b7d26
36 changed files with 6228 additions and 149 deletions

View File

@ -1,6 +1,8 @@
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
@ -544,23 +546,25 @@ namespace Yavsc.Migrations
b.Property<string>("Name")
.HasAnnotation("MaxLength", 255);
b.Property<string>("ApplicationUserId");
b.Property<string>("OwnerId");
b.Property<string>("Topic")
.HasAnnotation("MaxLength", 1023);
b.Property<string>("Topic");
b.HasKey("Name");
});
modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomPresence", b =>
modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b =>
{
b.Property<string>("ChannelName");
b.Property<string>("ChatUserConnectionId");
b.Property<string>("UserId");
b.Property<long>("Id")
.ValueGeneratedOnAdd();
b.Property<int>("Level");
b.HasKey("ChannelName", "ChatUserConnectionId");
b.HasKey("ChannelName", "UserId");
});
modelBuilder.Entity("Yavsc.Models.Cratie.Option", b =>
@ -836,7 +840,7 @@ namespace Yavsc.Migrations
b.HasKey("TaintId", "PrestationId");
});
modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b =>
modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b =>
{
b.Property<string>("DeviceId");
@ -846,10 +850,7 @@ namespace Yavsc.Migrations
b.Property<string>("DeviceOwnerId");
b.Property<string>("GCMRegistrationId")
.IsRequired();
b.Property<DateTime>("LatestActivityUpdate");
b.Property<DateTime?>("LatestActivityUpdate");
b.Property<string>("Model");
@ -1103,8 +1104,14 @@ namespace Yavsc.Migrations
b.Property<string>("UserId");
b.Property<long>("AddressId");
b.Property<string>("ApplicationUserId");
b.Property<string>("EMail");
b.Property<string>("Name");
b.HasKey("OwnerId", "UserId");
});
@ -1141,6 +1148,28 @@ namespace Yavsc.Migrations
b.HasKey("Id");
});
modelBuilder.Entity("Yavsc.Models.Relationship.PostalAddress", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd();
b.Property<string>("City");
b.Property<string>("Country");
b.Property<string>("PostalCode");
b.Property<string>("Province");
b.Property<string>("State");
b.Property<string>("Street1");
b.Property<string>("Street2");
b.HasKey("Id");
});
modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b =>
{
b.Property<long>("Id")
@ -1376,10 +1405,14 @@ namespace Yavsc.Migrations
b.Property<DateTime>("DateModified");
b.Property<string>("ManagerId");
b.Property<string>("ManagerId")
.IsRequired();
b.Property<string>("ReplyToAddress");
b.Property<string>("SuccessorId")
.IsRequired();
b.Property<int>("ToSend");
b.Property<string>("Topic")
@ -1645,18 +1678,18 @@ namespace Yavsc.Migrations
{
b.HasOne("Yavsc.Models.ApplicationUser")
.WithMany()
.HasForeignKey("ApplicationUserId");
.HasForeignKey("OwnerId");
});
modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomPresence", b =>
modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b =>
{
b.HasOne("Yavsc.Models.Chat.ChatRoom")
.WithMany()
.HasForeignKey("ChannelName");
b.HasOne("Yavsc.Models.Chat.ChatConnection")
b.HasOne("Yavsc.Models.ApplicationUser")
.WithMany()
.HasForeignKey("ChatUserConnectionId");
.HasForeignKey("UserId");
});
modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b =>
@ -1753,7 +1786,7 @@ namespace Yavsc.Migrations
.HasForeignKey("TaintId");
});
modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b =>
modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b =>
{
b.HasOne("Yavsc.Models.ApplicationUser")
.WithMany()
@ -1841,6 +1874,10 @@ namespace Yavsc.Migrations
modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b =>
{
b.HasOne("Yavsc.Models.Relationship.PostalAddress")
.WithMany()
.HasForeignKey("AddressId");
b.HasOne("Yavsc.Models.ApplicationUser")
.WithMany()
.HasForeignKey("ApplicationUserId");
@ -1950,6 +1987,10 @@ namespace Yavsc.Migrations
b.HasOne("Yavsc.Models.ApplicationUser")
.WithMany()
.HasForeignKey("ManagerId");
b.HasOne("Yavsc.Models.ApplicationUser")
.WithMany()
.HasForeignKey("SuccessorId");
});
modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b =>