// using System; using ASC.Core.Common.EF; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; namespace ASC.Core.Common.Migrations.MySql.UserDbContextMySql { [DbContext(typeof(MySqlUserDbContext))] partial class UserDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "3.1.8") .HasAnnotation("Relational:MaxIdentifierLength", 64); modelBuilder.Entity("ASC.Core.Common.EF.DbGroup", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnName("id") .HasColumnType("varchar(38)") .HasAnnotation("MySql:CharSet", "utf8") .HasAnnotation("MySql:Collation", "utf8_general_ci"); b.Property("CategoryId") .HasColumnName("categoryid") .HasColumnType("varchar(38)") .HasAnnotation("MySql:CharSet", "utf8") .HasAnnotation("MySql:Collation", "utf8_general_ci"); b.Property("LastModified") .ValueGeneratedOnAdd() .HasColumnName("last_modified") .HasColumnType("timestamp") .HasDefaultValueSql("CURRENT_TIMESTAMP"); b.Property("Name") .IsRequired() .HasColumnName("name") .HasColumnType("varchar(128)") .HasAnnotation("MySql:CharSet", "utf8") .HasAnnotation("MySql:Collation", "utf8_general_ci"); b.Property("ParentId") .HasColumnName("parentid") .HasColumnType("varchar(38)") .HasAnnotation("MySql:CharSet", "utf8") .HasAnnotation("MySql:Collation", "utf8_general_ci"); b.Property("Removed") .HasColumnName("removed") .HasColumnType("tinyint(1)"); b.Property("Sid") .HasColumnName("sid") .HasColumnType("varchar(512)") .HasAnnotation("MySql:CharSet", "utf8") .HasAnnotation("MySql:Collation", "utf8_general_ci"); b.Property("Tenant") .HasColumnName("tenant") .HasColumnType("int"); b.HasKey("Id"); b.HasIndex("LastModified") .HasName("last_modified"); b.HasIndex("Tenant", "ParentId") .HasName("parentid"); b.ToTable("core_group"); }); modelBuilder.Entity("ASC.Core.Common.EF.DbSubscriptionMethod", b => { b.Property("Tenant") .HasColumnName("tenant") .HasColumnType("int"); b.Property("Source") .HasColumnName("source") .HasColumnType("varchar(38)") .HasAnnotation("MySql:CharSet", "utf8") .HasAnnotation("MySql:Collation", "utf8_general_ci"); b.Property("Action") .HasColumnName("action") .HasColumnType("varchar(128)") .HasAnnotation("MySql:CharSet", "utf8") .HasAnnotation("MySql:Collation", "utf8_general_ci"); b.Property("Recipient") .HasColumnName("recipient") .HasColumnType("varchar(38)") .HasAnnotation("MySql:CharSet", "utf8") .HasAnnotation("MySql:Collation", "utf8_general_ci"); b.Property("Sender") .IsRequired() .HasColumnName("sender") .HasColumnType("varchar(1024)") .HasAnnotation("MySql:CharSet", "utf8") .HasAnnotation("MySql:Collation", "utf8_general_ci"); b.HasKey("Tenant", "Source", "Action", "Recipient") .HasName("PRIMARY"); b.ToTable("core_subscriptionmethod"); b.HasData( new { Tenant = -1, Source = "asc.web.studio", Action = "send_whats_new", Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Sender = "email.sender" }, new { Tenant = -1, Source = "6504977c-75af-4691-9099-084d3ddeea04", Action = "new feed", Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Sender = "email.sender|messanger.sender" }, new { Tenant = -1, Source = "6a598c74-91ae-437d-a5f4-ad339bd11bb2", Action = "new post", Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Sender = "email.sender|messanger.sender" }, new { Tenant = -1, Source = "853b6eb9-73ee-438d-9b09-8ffeedf36234", Action = "new topic in forum", Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Sender = "email.sender|messanger.sender" }, new { Tenant = -1, Source = "9d51954f-db9b-4aed-94e3-ed70b914e101", Action = "new photo uploaded", Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Sender = "email.sender|messanger.sender" }, new { Tenant = -1, Source = "28b10049-dd20-4f54-b986-873bc14ccfc7", Action = "new bookmark created", Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Sender = "email.sender|messanger.sender" }, new { Tenant = -1, Source = "742cf945-cbbc-4a57-82d6-1600a12cf8ca", Action = "new wiki page", Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Sender = "email.sender|messanger.sender" }, new { Tenant = -1, Source = "37620ae5-c40b-45ce-855a-39dd7d76a1fa", Action = "BirthdayReminder", Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", Sender = "email.sender|messanger.sender" }, new { Tenant = -1, Source = "6fe286a4-479e-4c25-a8d9-0156e332b0c0", Action = "sharedocument", Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Sender = "email.sender|messanger.sender" }, new { Tenant = -1, Source = "6fe286a4-479e-4c25-a8d9-0156e332b0c0", Action = "sharefolder", Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Sender = "email.sender|messanger.sender" }, new { Tenant = -1, Source = "6fe286a4-479e-4c25-a8d9-0156e332b0c0", Action = "updatedocument", Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Sender = "email.sender|messanger.sender" }, new { Tenant = -1, Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", Action = "invitetoproject", Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Sender = "email.sender|messanger.sender" }, new { Tenant = -1, Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", Action = "milestonedeadline", Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Sender = "email.sender|messanger.sender" }, new { Tenant = -1, Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", Action = "newcommentformessage", Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Sender = "email.sender|messanger.sender" }, new { Tenant = -1, Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", Action = "newcommentformilestone", Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Sender = "email.sender|messanger.sender" }, new { Tenant = -1, Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", Action = "newcommentfortask", Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Sender = "email.sender|messanger.sender" }, new { Tenant = -1, Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", Action = "projectcreaterequest", Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Sender = "email.sender|messanger.sender" }, new { Tenant = -1, Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", Action = "projecteditrequest", Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Sender = "email.sender|messanger.sender" }, new { Tenant = -1, Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", Action = "removefromproject", Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Sender = "email.sender|messanger.sender" }, new { Tenant = -1, Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", Action = "responsibleforproject", Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Sender = "email.sender|messanger.sender" }, new { Tenant = -1, Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", Action = "responsiblefortask", Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Sender = "email.sender|messanger.sender" }, new { Tenant = -1, Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", Action = "taskclosed", Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Sender = "email.sender|messanger.sender" }, new { Tenant = -1, Source = "40650da3-f7c1-424c-8c89-b9c115472e08", Action = "calendar_sharing", Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Sender = "email.sender|messanger.sender" }, new { Tenant = -1, Source = "40650da3-f7c1-424c-8c89-b9c115472e08", Action = "event_alert", Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Sender = "email.sender|messanger.sender" }, new { Tenant = -1, Source = "asc.web.studio", Action = "admin_notify", Recipient = "cd84e66b-b803-40fc-99f9-b2969a54a1de", Sender = "email.sender" }, new { Tenant = -1, Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", Action = "SetAccess", Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", Sender = "email.sender|messanger.sender" }, new { Tenant = -1, Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", Action = "ResponsibleForTask", Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", Sender = "email.sender|messanger.sender" }, new { Tenant = -1, Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", Action = "AddRelationshipEvent", Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", Sender = "email.sender|messanger.sender" }, new { Tenant = -1, Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", Action = "ExportCompleted", Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", Sender = "email.sender|messanger.sender" }, new { Tenant = -1, Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", Action = "CreateNewContact", Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", Sender = "email.sender" }, new { Tenant = -1, Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", Action = "ResponsibleForOpportunity", Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", Sender = "email.sender|messanger.sender" }, new { Tenant = -1, Source = "asc.web.studio", Action = "periodic_notify", Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Sender = "email.sender" }); }); modelBuilder.Entity("ASC.Core.Common.EF.Subscription", b => { b.Property("Tenant") .HasColumnName("tenant") .HasColumnType("int"); b.Property("Source") .HasColumnName("source") .HasColumnType("varchar(38)") .HasAnnotation("MySql:CharSet", "utf8") .HasAnnotation("MySql:Collation", "utf8_general_ci"); b.Property("Action") .HasColumnName("action") .HasColumnType("varchar(128)") .HasAnnotation("MySql:CharSet", "utf8") .HasAnnotation("MySql:Collation", "utf8_general_ci"); b.Property("Recipient") .HasColumnName("recipient") .HasColumnType("varchar(38)") .HasAnnotation("MySql:CharSet", "utf8") .HasAnnotation("MySql:Collation", "utf8_general_ci"); b.Property("Object") .HasColumnName("object") .HasColumnType("varchar(128)") .HasAnnotation("MySql:CharSet", "utf8") .HasAnnotation("MySql:Collation", "utf8_general_ci"); b.Property("Unsubscribed") .HasColumnName("unsubscribed") .HasColumnType("tinyint(1)"); b.HasKey("Tenant", "Source", "Action", "Recipient", "Object") .HasName("PRIMARY"); b.ToTable("core_subscription"); b.HasData( new { Tenant = -1, Source = "asc.web.studio", Action = "send_whats_new", Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Object = "", Unsubscribed = false }, new { Tenant = -1, Source = "6504977c-75af-4691-9099-084d3ddeea04", Action = "new feed", Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Object = "", Unsubscribed = false }, new { Tenant = -1, Source = "6a598c74-91ae-437d-a5f4-ad339bd11bb2", Action = "new post", Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Object = "", Unsubscribed = false }, new { Tenant = -1, Source = "853b6eb9-73ee-438d-9b09-8ffeedf36234", Action = "new topic in forum", Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Object = "", Unsubscribed = false }, new { Tenant = -1, Source = "9d51954f-db9b-4aed-94e3-ed70b914e10", Action = "new photo uploaded", Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Object = "", Unsubscribed = false }, new { Tenant = -1, Source = "28b10049-dd20-4f54-b986-873bc14ccfc7", Action = "new bookmark created", Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Object = "", Unsubscribed = false }, new { Tenant = -1, Source = "742cf945-cbbc-4a57-82d6-1600a12cf8ca", Action = "new wiki page", Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Object = "", Unsubscribed = false }, new { Tenant = -1, Source = "37620ae5-c40b-45ce-855a-39dd7d76a1fa", Action = "BirthdayReminderd", Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", Object = "", Unsubscribed = false }, new { Tenant = -1, Source = "6fe286a4-479e-4c25-a8d9-0156e332b0c0", Action = "sharedocument", Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Object = "", Unsubscribed = false }, new { Tenant = -1, Source = "6fe286a4-479e-4c25-a8d9-0156e332b0c0", Action = "sharefolder", Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Object = "", Unsubscribed = false }, new { Tenant = -1, Source = "40650da3-f7c1-424c-8c89-b9c115472e08", Action = "calendar_sharing", Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Object = "", Unsubscribed = false }, new { Tenant = -1, Source = "40650da3-f7c1-424c-8c89-b9c115472e08", Action = "event_alert", Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Object = "", Unsubscribed = false }, new { Tenant = -1, Source = "asc.web.studio", Action = "admin_notify", Recipient = "cd84e66b-b803-40fc-99f9-b2969a54a1de", Object = "", Unsubscribed = false }, new { Tenant = -1, Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", Action = "SetAccess", Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", Object = "", Unsubscribed = false }, new { Tenant = -1, Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", Action = "ResponsibleForTask", Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", Object = "", Unsubscribed = false }, new { Tenant = -1, Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", Action = "AddRelationshipEvent", Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", Object = "", Unsubscribed = false }, new { Tenant = -1, Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", Action = "ExportCompleted", Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", Object = "", Unsubscribed = false }, new { Tenant = -1, Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", Action = "CreateNewContact", Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", Object = "", Unsubscribed = false }, new { Tenant = -1, Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", Action = "ResponsibleForOpportunity", Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", Object = "", Unsubscribed = false }, new { Tenant = -1, Source = "asc.web.studio", Action = "periodic_notify", Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Object = "", Unsubscribed = false }); }); modelBuilder.Entity("ASC.Core.Common.EF.UserGroup", b => { b.Property("Tenant") .HasColumnName("tenant") .HasColumnType("int"); b.Property("UserId") .HasColumnName("userid") .HasColumnType("varchar(38)") .HasAnnotation("MySql:CharSet", "utf8") .HasAnnotation("MySql:Collation", "utf8_general_ci"); b.Property("GroupId") .HasColumnName("groupid") .HasColumnType("varchar(38)") .HasAnnotation("MySql:CharSet", "utf8") .HasAnnotation("MySql:Collation", "utf8_general_ci"); b.Property("RefType") .HasColumnName("ref_type") .HasColumnType("int"); b.Property("LastModified") .ValueGeneratedOnAdd() .HasColumnName("last_modified") .HasColumnType("timestamp") .HasDefaultValueSql("CURRENT_TIMESTAMP"); b.Property("Removed") .HasColumnName("removed") .HasColumnType("tinyint(1)"); b.HasKey("Tenant", "UserId", "GroupId", "RefType") .HasName("PRIMARY"); b.HasIndex("LastModified") .HasName("last_modified"); b.HasIndex("UserId"); b.ToTable("core_usergroup"); b.HasData( new { Tenant = 1, UserId = "66faa6e4-f133-11ea-b126-00ffeec8b4ef", GroupId = "cd84e66b-b803-40fc-99f9-b2969a54a1de", RefType = 0, LastModified = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), Removed = false }); }); modelBuilder.Entity("ASC.Core.Common.EF.UserPhoto", b => { b.Property("UserId") .ValueGeneratedOnAdd() .HasColumnName("userid") .HasColumnType("varchar(38)") .HasAnnotation("MySql:CharSet", "utf8") .HasAnnotation("MySql:Collation", "utf8_general_ci"); b.Property("Photo") .IsRequired() .HasColumnName("photo") .HasColumnType("mediumblob"); b.Property("Tenant") .HasColumnName("tenant") .HasColumnType("int"); b.HasKey("UserId") .HasName("PRIMARY"); b.HasIndex("Tenant") .HasName("tenant"); b.ToTable("core_userphoto"); }); modelBuilder.Entity("ASC.Core.Common.EF.UserSecurity", b => { b.Property("UserId") .HasColumnName("userid") .HasColumnType("varchar(38)") .HasAnnotation("MySql:CharSet", "utf8") .HasAnnotation("MySql:Collation", "utf8_general_ci"); b.Property("LastModified") .ValueGeneratedOnAddOrUpdate() .HasColumnType("timestamp") .HasDefaultValueSql("CURRENT_TIMESTAMP"); b.Property("PwdHash") .HasColumnName("pwdhash") .HasColumnType("varchar(512)") .HasAnnotation("MySql:CharSet", "utf8") .HasAnnotation("MySql:Collation", "utf8_general_ci"); b.Property("PwdHashSha512") .HasColumnName("pwdhashsha512") .HasColumnType("varchar(512)") .HasAnnotation("MySql:CharSet", "utf8") .HasAnnotation("MySql:Collation", "utf8_general_ci"); b.Property("Tenant") .HasColumnName("tenant") .HasColumnType("int"); b.HasKey("UserId") .HasName("PRIMARY"); b.HasIndex("PwdHash") .HasName("pwdhash"); b.HasIndex("Tenant") .HasName("tenant"); b.ToTable("core_usersecurity"); b.HasData( new { UserId = "66faa6e4-f133-11ea-b126-00ffeec8b4ef", LastModified = new DateTime(2020, 10, 6, 10, 16, 22, 182, DateTimeKind.Utc).AddTicks(12), PwdHash = "vLFfghR5tNV3K9DKhmwArV+SbjWAcgZZzIDTnJ0JgCo=", PwdHashSha512 = "USubvPlB+ogq0Q1trcSupg==", Tenant = 1 }); }); modelBuilder.Entity("ASC.Core.Common.EF.UserGroup", b => { b.HasOne("ASC.Core.Common.EF.User", null) .WithMany("Groups") .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("ASC.Core.Common.EF.UserSecurity", b => { b.HasOne("ASC.Core.Common.EF.User", null) .WithOne("UserSecurity") .HasForeignKey("ASC.Core.Common.EF.UserSecurity", "UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); #pragma warning restore 612, 618 } } }