// using System; using ASC.Core.Common.EF; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace ASC.Core.Common.Migrations { [DbContext(typeof(MySqlUserDbContext))] [Migration("20210804110106_TestMigration")] partial class TestMigration { protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("Relational:MaxIdentifierLength", 64) .HasAnnotation("ProductVersion", "5.0.8"); modelBuilder.Entity("ASC.Core.Common.EF.Acl", b => { b.Property("Tenant") .HasColumnType("int") .HasColumnName("tenant"); b.Property("Subject") .HasColumnType("varchar(38)") .HasColumnName("subject") .UseCollation("utf8_general_ci") .HasCharSet("utf8"); b.Property("Action") .HasColumnType("varchar(38)") .HasColumnName("action") .UseCollation("utf8_general_ci") .HasCharSet("utf8"); b.Property("Object") .ValueGeneratedOnAdd() .HasColumnType("varchar(255)") .HasColumnName("object") .HasDefaultValueSql("''") .UseCollation("utf8_general_ci") .HasCharSet("utf8"); b.Property("AceType") .HasColumnType("int") .HasColumnName("acetype"); b.HasKey("Tenant", "Subject", "Action", "Object") .HasName("PRIMARY"); b.ToTable("core_acl"); b.HasData( new { Tenant = -1, Subject = "5d5b7260-f7f7-49f1-a1c9-95fbb6a12604", Action = "ef5e6790-f346-4b6e-b662-722bc28cb0db", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "5d5b7260-f7f7-49f1-a1c9-95fbb6a12604", Action = "f11e8f3f-46e6-4e55-90e3-09c22ec565bd", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Action = "088d5940-a80f-4403-9741-d610718ce95c", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Action = "08d66144-e1c9-4065-9aa1-aa4bba0a7bc8", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "abef62db-11a8-4673-9d32-ef1d8af19dc0", Action = "08d75c97-cf3f-494b-90d1-751c941fe2dd", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "abef62db-11a8-4673-9d32-ef1d8af19dc0", Action = "0d1f72a8-63da-47ea-ae42-0900e4ac72a9", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "abef62db-11a8-4673-9d32-ef1d8af19dc0", Action = "13e30b51-5b4d-40a5-8575-cb561899eeb1", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "abef62db-11a8-4673-9d32-ef1d8af19dc0", Action = "19f658ae-722b-4cd8-8236-3ad150801d96", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "abef62db-11a8-4673-9d32-ef1d8af19dc0", Action = "2c6552b3-b2e0-4a00-b8fd-13c161e337b1", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Action = "388c29d3-c662-4a61-bf47-fc2f7094224a", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "abef62db-11a8-4673-9d32-ef1d8af19dc0", Action = "40bf31f4-3132-4e76-8d5c-9828a89501a3", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "abef62db-11a8-4673-9d32-ef1d8af19dc0", Action = "49ae8915-2b30-4348-ab74-b152279364fb", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Action = "63e9f35f-6bb5-4fb1-afaa-e4c2f4dec9bd", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Action = "9018c001-24c2-44bf-a1db-d1121a570e74", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "abef62db-11a8-4673-9d32-ef1d8af19dc0", Action = "948ad738-434b-4a88-8e38-7569d332910a", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "abef62db-11a8-4673-9d32-ef1d8af19dc0", Action = "9d75a568-52aa-49d8-ad43-473756cd8903", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Action = "a362fe79-684e-4d43-a599-65bc1f4e167f", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Action = "c426c349-9ad4-47cd-9b8f-99fc30675951", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Action = "d11ebcb9-0e6e-45e6-a6d0-99c41d687598", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Action = "d1f3b53d-d9e2-4259-80e7-d24380978395", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "abef62db-11a8-4673-9d32-ef1d8af19dc0", Action = "d49f4e30-da10-4b39-bc6d-b41ef6e039d3", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "abef62db-11a8-4673-9d32-ef1d8af19dc0", Action = "d852b66f-6719-45e1-8657-18f0bb791690", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Action = "e0759a42-47f0-4763-a26a-d5aa665bec35", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Action = "e37239bd-c5b5-4f1e-a9f8-3ceeac209615", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Action = "fbc37705-a04c-40ad-a68c-ce2f0423f397", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Action = "fcac42b8-9386-48eb-a938-d19b3c576912", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "ba74ca02-873f-43dc-8470-8620c156bc67", Action = "13e30b51-5b4d-40a5-8575-cb561899eeb1", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "ba74ca02-873f-43dc-8470-8620c156bc67", Action = "49ae8915-2b30-4348-ab74-b152279364fb", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "ba74ca02-873f-43dc-8470-8620c156bc67", Action = "63e9f35f-6bb5-4fb1-afaa-e4c2f4dec9bd", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "ba74ca02-873f-43dc-8470-8620c156bc67", Action = "9018c001-24c2-44bf-a1db-d1121a570e74", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "ba74ca02-873f-43dc-8470-8620c156bc67", Action = "d1f3b53d-d9e2-4259-80e7-d24380978395", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "ba74ca02-873f-43dc-8470-8620c156bc67", Action = "e0759a42-47f0-4763-a26a-d5aa665bec35", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "ba74ca02-873f-43dc-8470-8620c156bc67", Action = "e37239bd-c5b5-4f1e-a9f8-3ceeac209615", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "ba74ca02-873f-43dc-8470-8620c156bc67", Action = "f11e88d7-f185-4372-927c-d88008d2c483", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "ba74ca02-873f-43dc-8470-8620c156bc67", Action = "f11e8f3f-46e6-4e55-90e3-09c22ec565bd", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf", Action = "00e7dfc5-ac49-4fd3-a1d6-98d84e877ac4", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf", Action = "14be970f-7af5-4590-8e81-ea32b5f7866d", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf", Action = "18ecc94d-6afa-4994-8406-aee9dff12ce2", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf", Action = "298530eb-435e-4dc6-a776-9abcd95c70e9", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf", Action = "430eaf70-1886-483c-a746-1a18e3e6bb63", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf", Action = "557d6503-633b-4490-a14c-6473147ce2b3", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf", Action = "724cbb75-d1c9-451e-bae0-4de0db96b1f7", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf", Action = "7cb5c0d1-d254-433f-abe3-ff23373ec631", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf", Action = "91b29dcd-9430-4403-b17a-27d09189be88", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf", Action = "a18480a4-6d18-4c71-84fa-789888791f45", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf", Action = "b630d29b-1844-4bda-bbbe-cf5542df3559", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf", Action = "c62a9e8d-b24c-4513-90aa-7ff0f8ba38eb", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf", Action = "d7cdb020-288b-41e5-a857-597347618533", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf", Action = "662f3db7-9bc8-42cf-84da-2765f563e9b0", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "712d9ec3-5d2b-4b13-824f-71f00191dcca", Action = "e0759a42-47f0-4763-a26a-d5aa665bec35", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf", Action = "0d68b142-e20a-446e-a832-0d6b0b65a164", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Action = "6f05c382-8bca-4469-9424-c807a98c40d7", Object = "", AceType = 0 }, new { Tenant = -1, Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Action = "77777777-32ae-425f-99b5-83176061d1ae", Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|1e04460243b54d7982f3fd6208a11960", AceType = 0 }, new { Tenant = -1, Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Action = "77777777-32ae-425f-99b5-83176061d1ae", Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|6743007c6f954d208c88a8601ce5e76d", AceType = 0 }, new { Tenant = -1, Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Action = "77777777-32ae-425f-99b5-83176061d1ae", Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|e67be73df9ae4ce18fec1880cb518cb4", AceType = 0 }, new { Tenant = -1, Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Action = "77777777-32ae-425f-99b5-83176061d1ae", Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|ea942538e68e49079394035336ee0ba8", AceType = 0 }, new { Tenant = -1, Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Action = "77777777-32ae-425f-99b5-83176061d1ae", Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|32d24cb57ece46069c9419216ba42086", AceType = 0 }, new { Tenant = -1, Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Action = "77777777-32ae-425f-99b5-83176061d1ae", Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|bf88953e3c434850a3fbb1e43ad53a3e", AceType = 0 }, new { Tenant = -1, Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Action = "77777777-32ae-425f-99b5-83176061d1ae", Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|2a9230378b2d487b9a225ac0918acf3f", AceType = 0 }, new { Tenant = -1, Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Action = "77777777-32ae-425f-99b5-83176061d1ae", Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|f4d98afdd336433287783c6945c81ea0", AceType = 0 }, new { Tenant = -1, Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Action = "77777777-32ae-425f-99b5-83176061d1ae", Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|28b10049dd204f54b986873bc14ccfc7", AceType = 0 }, new { Tenant = -1, Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Action = "77777777-32ae-425f-99b5-83176061d1ae", Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|3cfd481b46f24a4ab55cb8c0c9def02c", AceType = 0 }, new { Tenant = -1, Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Action = "77777777-32ae-425f-99b5-83176061d1ae", Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|6a598c7491ae437da5f4ad339bd11bb2", AceType = 0 }, new { Tenant = -1, Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Action = "77777777-32ae-425f-99b5-83176061d1ae", Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|742cf945cbbc4a5782d61600a12cf8ca", AceType = 0 }, new { Tenant = -1, Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Action = "77777777-32ae-425f-99b5-83176061d1ae", Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|853b6eb973ee438d9b098ffeedf36234", AceType = 0 }, new { Tenant = -1, Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", Action = "77777777-32ae-425f-99b5-83176061d1ae", Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|46cfa73af32046cf8d5bcd82e1d67f26", AceType = 0 }); }); modelBuilder.Entity("ASC.Core.Common.EF.DbGroup", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("varchar(38)") .HasColumnName("id") .UseCollation("utf8_general_ci") .HasCharSet("utf8"); b.Property("CategoryId") .HasColumnType("varchar(38)") .HasColumnName("categoryid") .UseCollation("utf8_general_ci") .HasCharSet("utf8"); b.Property("LastModified") .ValueGeneratedOnAdd() .HasColumnType("timestamp") .HasColumnName("last_modified") .HasDefaultValueSql("CURRENT_TIMESTAMP"); b.Property("Name") .IsRequired() .HasColumnType("varchar(128)") .HasColumnName("name") .UseCollation("utf8_general_ci") .HasCharSet("utf8"); b.Property("ParentId") .HasColumnType("varchar(38)") .HasColumnName("parentid") .UseCollation("utf8_general_ci") .HasCharSet("utf8"); b.Property("Removed") .HasColumnType("tinyint(1)") .HasColumnName("removed"); b.Property("Sid") .HasColumnType("varchar(512)") .HasColumnName("sid") .UseCollation("utf8_general_ci") .HasCharSet("utf8"); b.Property("Tenant") .HasColumnType("int") .HasColumnName("tenant"); b.HasKey("Id"); b.HasIndex("LastModified") .HasDatabaseName("last_modified"); b.HasIndex("Tenant", "ParentId") .HasDatabaseName("parentid"); b.ToTable("core_group"); }); modelBuilder.Entity("ASC.Core.Common.EF.DbSubscriptionMethod", b => { b.Property("Tenant") .HasColumnType("int") .HasColumnName("tenant"); b.Property("Source") .HasColumnType("varchar(38)") .HasColumnName("source") .UseCollation("utf8_general_ci") .HasCharSet("utf8"); b.Property("Action") .HasColumnType("varchar(128)") .HasColumnName("action") .UseCollation("utf8_general_ci") .HasCharSet("utf8"); b.Property("Recipient") .HasColumnType("varchar(38)") .HasColumnName("recipient") .UseCollation("utf8_general_ci") .HasCharSet("utf8"); b.Property("Sender") .IsRequired() .HasColumnType("varchar(1024)") .HasColumnName("sender") .UseCollation("utf8_general_ci") .HasCharSet("utf8"); 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") .HasColumnType("int") .HasColumnName("tenant"); b.Property("Source") .HasColumnType("varchar(38)") .HasColumnName("source") .UseCollation("utf8_general_ci") .HasCharSet("utf8"); b.Property("Action") .HasColumnType("varchar(128)") .HasColumnName("action") .UseCollation("utf8_general_ci") .HasCharSet("utf8"); b.Property("Recipient") .HasColumnType("varchar(38)") .HasColumnName("recipient") .UseCollation("utf8_general_ci") .HasCharSet("utf8"); b.Property("Object") .HasColumnType("varchar(128)") .HasColumnName("object") .UseCollation("utf8_general_ci") .HasCharSet("utf8"); b.Property("Unsubscribed") .HasColumnType("tinyint(1)") .HasColumnName("unsubscribed"); 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.User", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("varchar(38)") .HasColumnName("id") .UseCollation("utf8_general_ci") .HasCharSet("utf8"); b.Property("ActivationStatus") .HasColumnType("int") .HasColumnName("activation_status"); b.Property("Birthdate") .HasColumnType("datetime") .HasColumnName("bithdate"); b.Property("Contacts") .HasColumnType("varchar(1024)") .HasColumnName("contacts") .UseCollation("utf8_general_ci") .HasCharSet("utf8"); b.Property("CreateOn") .ValueGeneratedOnAdd() .HasColumnType("timestamp") .HasColumnName("create_on") .HasDefaultValueSql("CURRENT_TIMESTAMP"); b.Property("Culture") .HasColumnType("varchar(20)") .HasColumnName("culture") .UseCollation("utf8_general_ci") .HasCharSet("utf8"); b.Property("Email") .HasColumnType("varchar(255)") .HasColumnName("email") .UseCollation("utf8_general_ci") .HasCharSet("utf8"); b.Property("FirstName") .IsRequired() .HasColumnType("varchar(64)") .HasColumnName("firstname") .UseCollation("utf8_general_ci") .HasCharSet("utf8"); b.Property("LastModified") .HasColumnType("datetime") .HasColumnName("last_modified"); b.Property("LastName") .IsRequired() .HasColumnType("varchar(64)") .HasColumnName("lastname") .UseCollation("utf8_general_ci") .HasCharSet("utf8"); b.Property("Location") .HasColumnType("varchar(255)") .HasColumnName("location") .UseCollation("utf8_general_ci") .HasCharSet("utf8"); b.Property("Notes") .HasColumnType("varchar(512)") .HasColumnName("notes") .UseCollation("utf8_general_ci") .HasCharSet("utf8"); b.Property("Phone") .HasColumnType("varchar(255)") .HasColumnName("phone") .UseCollation("utf8_general_ci") .HasCharSet("utf8"); b.Property("PhoneActivation") .HasColumnType("int") .HasColumnName("phone_activation"); b.Property("Removed") .HasColumnType("tinyint(1)") .HasColumnName("removed"); b.Property("Sex") .HasColumnType("tinyint(1)") .HasColumnName("sex"); b.Property("Sid") .HasColumnType("varchar(512)") .HasColumnName("sid") .UseCollation("utf8_general_ci") .HasCharSet("utf8"); b.Property("SsoNameId") .HasColumnType("varchar(512)") .HasColumnName("sso_name_id") .UseCollation("utf8_general_ci") .HasCharSet("utf8"); b.Property("SsoSessionId") .HasColumnType("varchar(512)") .HasColumnName("sso_session_id") .UseCollation("utf8_general_ci") .HasCharSet("utf8"); b.Property("Status") .ValueGeneratedOnAdd() .HasColumnType("int") .HasColumnName("status") .HasDefaultValueSql("'1'"); b.Property("Tenant") .HasColumnType("int") .HasColumnName("tenant"); b.Property("TerminatedDate") .HasColumnType("datetime") .HasColumnName("terminateddate"); b.Property("Title") .HasColumnType("varchar(64)") .HasColumnName("title") .UseCollation("utf8_general_ci") .HasCharSet("utf8"); b.Property("UserName") .IsRequired() .HasColumnType("varchar(255)") .HasColumnName("username") .UseCollation("utf8_general_ci") .HasCharSet("utf8"); b.Property("WorkFromDate") .HasColumnType("datetime") .HasColumnName("workfromdate"); b.HasKey("Id"); b.HasIndex("Email") .HasDatabaseName("email"); b.HasIndex("LastModified") .HasDatabaseName("last_modified"); b.HasIndex("Tenant", "UserName") .HasDatabaseName("username"); b.ToTable("core_user"); b.HasData( new { Id = "66faa6e4-f133-11ea-b126-00ffeec8b4ef", ActivationStatus = 0, CreateOn = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), Email = "", FirstName = "Administrator", LastModified = new DateTime(2021, 8, 4, 11, 1, 4, 513, DateTimeKind.Utc).AddTicks(1842), LastName = "", PhoneActivation = 0, Removed = false, Status = 1, Tenant = 1, UserName = "administrator", WorkFromDate = new DateTime(2021, 8, 4, 11, 1, 4, 512, DateTimeKind.Utc).AddTicks(9355) }, new { Id = "99223c7b-e3c9-11eb-9063-982cbc0ea1e5", ActivationStatus = 0, CreateOn = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), Email = "test@gmail.com", FirstName = "Test", LastModified = new DateTime(2021, 8, 4, 11, 1, 4, 513, DateTimeKind.Utc).AddTicks(2928), LastName = "User", PhoneActivation = 0, Removed = false, Status = 1, Tenant = 1, UserName = "TestUser", WorkFromDate = new DateTime(2021, 8, 4, 11, 1, 4, 513, DateTimeKind.Utc).AddTicks(2940) }); }); modelBuilder.Entity("ASC.Core.Common.EF.UserGroup", b => { b.Property("Tenant") .HasColumnType("int") .HasColumnName("tenant"); b.Property("UserId") .HasColumnType("varchar(38)") .HasColumnName("userid") .UseCollation("utf8_general_ci") .HasCharSet("utf8"); b.Property("GroupId") .HasColumnType("varchar(38)") .HasColumnName("groupid") .UseCollation("utf8_general_ci") .HasCharSet("utf8"); b.Property("RefType") .HasColumnType("int") .HasColumnName("ref_type"); b.Property("LastModified") .ValueGeneratedOnAdd() .HasColumnType("timestamp") .HasColumnName("last_modified") .HasDefaultValueSql("CURRENT_TIMESTAMP"); b.Property("Removed") .HasColumnType("tinyint(1)") .HasColumnName("removed"); b.HasKey("Tenant", "UserId", "GroupId", "RefType") .HasName("PRIMARY"); b.HasIndex("LastModified") .HasDatabaseName("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() .HasColumnType("varchar(38)") .HasColumnName("userid") .UseCollation("utf8_general_ci") .HasCharSet("utf8"); b.Property("Photo") .IsRequired() .HasColumnType("mediumblob") .HasColumnName("photo"); b.Property("Tenant") .HasColumnType("int") .HasColumnName("tenant"); b.HasKey("UserId") .HasName("PRIMARY"); b.HasIndex("Tenant") .HasDatabaseName("tenant"); b.ToTable("core_userphoto"); }); modelBuilder.Entity("ASC.Core.Common.EF.UserSecurity", b => { b.Property("UserId") .HasColumnType("varchar(38)") .HasColumnName("userid") .UseCollation("utf8_general_ci") .HasCharSet("utf8"); b.Property("LastModified") .ValueGeneratedOnAddOrUpdate() .HasColumnType("timestamp") .HasDefaultValueSql("CURRENT_TIMESTAMP"); b.Property("PwdHash") .HasColumnType("varchar(512)") .HasColumnName("pwdhash") .UseCollation("utf8_general_ci") .HasCharSet("utf8"); b.Property("PwdHashSha512") .HasColumnType("varchar(512)") .HasColumnName("pwdhashsha512") .UseCollation("utf8_general_ci") .HasCharSet("utf8"); b.Property("Tenant") .HasColumnType("int") .HasColumnName("tenant"); b.HasKey("UserId") .HasName("PRIMARY"); b.HasIndex("PwdHash") .HasDatabaseName("pwdhash"); b.HasIndex("Tenant") .HasDatabaseName("tenant"); b.ToTable("core_usersecurity"); b.HasData( new { UserId = "66faa6e4-f133-11ea-b126-00ffeec8b4ef", LastModified = new DateTime(2021, 8, 4, 11, 1, 4, 554, DateTimeKind.Utc).AddTicks(8500), PwdHash = "jGl25bVBBBW96Qi9Te4V37Fnqchz/Eu4qB9vKrRIqRg=", Tenant = 1 }, new { UserId = "99223c7b-e3c9-11eb-9063-982cbc0ea1e5", LastModified = new DateTime(2021, 8, 4, 11, 1, 4, 554, DateTimeKind.Utc).AddTicks(9779), 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(); }); modelBuilder.Entity("ASC.Core.Common.EF.User", b => { b.Navigation("Groups"); b.Navigation("UserSecurity"); }); #pragma warning restore 612, 618 } } }