// using System; using LY.MicroService.RealtimeMessage.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Volo.Abp.EntityFrameworkCore; #nullable disable namespace LY.MicroService.RealtimeMessage.Migrations { [DbContext(typeof(RealtimeMessageMigrationsDbContext))] partial class RealtimeMessageMigrationsDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.MySql) .HasAnnotation("ProductVersion", "6.0.8") .HasAnnotation("Relational:MaxIdentifierLength", 64); modelBuilder.Entity("LINGYUN.Abp.MessageService.Chat.UserChatCard", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("Age") .HasColumnType("int"); b.Property("AvatarUrl") .HasMaxLength(512) .HasColumnType("varchar(512)"); b.Property("Birthday") .HasColumnType("datetime(6)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("varchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime(6)") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("char(36)") .HasColumnName("CreatorId"); b.Property("Description") .HasMaxLength(50) .HasColumnType("varchar(50)"); b.Property("ExtraProperties") .HasColumnType("longtext") .HasColumnName("ExtraProperties"); b.Property("LastModificationTime") .HasColumnType("datetime(6)") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("char(36)") .HasColumnName("LastModifierId"); b.Property("LastOnlineTime") .HasColumnType("datetime(6)"); b.Property("NickName") .HasMaxLength(256) .HasColumnType("varchar(256)"); b.Property("Sex") .HasColumnType("int"); b.Property("Sign") .HasMaxLength(30) .HasColumnType("varchar(30)"); b.Property("State") .HasColumnType("int"); b.Property("TenantId") .HasColumnType("char(36)") .HasColumnName("TenantId"); b.Property("UserId") .HasColumnType("char(36)"); b.Property("UserName") .IsRequired() .HasMaxLength(256) .HasColumnType("varchar(256)"); b.HasKey("Id"); b.HasIndex("TenantId", "UserId"); b.ToTable("AppUserChatCards", (string)null); }); modelBuilder.Entity("LINGYUN.Abp.MessageService.Chat.UserChatFriend", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("Black") .HasColumnType("tinyint(1)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("varchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime(6)") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("char(36)") .HasColumnName("CreatorId"); b.Property("Description") .HasMaxLength(50) .HasColumnType("varchar(50)"); b.Property("DontDisturb") .HasColumnType("tinyint(1)"); b.Property("ExtraProperties") .HasColumnType("longtext") .HasColumnName("ExtraProperties"); b.Property("FrientId") .HasColumnType("char(36)"); b.Property("IsStatic") .HasColumnType("tinyint(1)"); b.Property("RemarkName") .HasMaxLength(256) .HasColumnType("varchar(256)"); b.Property("SpecialFocus") .HasColumnType("tinyint(1)"); b.Property("Status") .HasColumnType("tinyint unsigned"); b.Property("TenantId") .HasColumnType("char(36)") .HasColumnName("TenantId"); b.Property("UserId") .HasColumnType("char(36)"); b.HasKey("Id"); b.HasIndex("TenantId", "UserId", "FrientId"); b.ToTable("AppUserChatFriends", (string)null); }); modelBuilder.Entity("LINGYUN.Abp.MessageService.Chat.UserChatSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("AllowAddFriend") .HasColumnType("tinyint(1)"); b.Property("AllowAnonymous") .HasColumnType("tinyint(1)"); b.Property("AllowReceiveMessage") .HasColumnType("tinyint(1)"); b.Property("AllowSendMessage") .HasColumnType("tinyint(1)"); b.Property("RequireAddFriendValition") .HasColumnType("tinyint(1)"); b.Property("TenantId") .HasColumnType("char(36)") .HasColumnName("TenantId"); b.Property("UserId") .HasColumnType("char(36)"); b.HasKey("Id"); b.HasIndex("TenantId", "UserId"); b.ToTable("AppUserChatSettings", (string)null); }); modelBuilder.Entity("LINGYUN.Abp.MessageService.Chat.UserMessage", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("varchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("Content") .IsRequired() .HasMaxLength(1048576) .HasColumnType("longtext"); b.Property("CreationTime") .HasColumnType("datetime(6)") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("char(36)") .HasColumnName("CreatorId"); b.Property("ExtraProperties") .HasColumnType("longtext") .HasColumnName("ExtraProperties"); b.Property("MessageId") .HasColumnType("bigint"); b.Property("ReceiveUserId") .HasColumnType("char(36)"); b.Property("SendUserName") .IsRequired() .HasMaxLength(64) .HasColumnType("varchar(64)"); b.Property("Source") .HasColumnType("int"); b.Property("State") .HasColumnType("tinyint"); b.Property("TenantId") .HasColumnType("char(36)") .HasColumnName("TenantId"); b.Property("Type") .HasColumnType("int"); b.HasKey("Id"); b.HasIndex("TenantId", "ReceiveUserId"); b.ToTable("AppUserMessages", (string)null); }); modelBuilder.Entity("LINGYUN.Abp.MessageService.Groups.ChatGroup", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("Address") .HasMaxLength(256) .HasColumnType("varchar(256)"); b.Property("AdminUserId") .HasColumnType("char(36)"); b.Property("AllowAnonymous") .HasColumnType("tinyint(1)"); b.Property("AllowSendMessage") .HasColumnType("tinyint(1)"); b.Property("AvatarUrl") .HasMaxLength(128) .HasColumnType("varchar(128)"); b.Property("CreationTime") .HasColumnType("datetime(6)") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("char(36)") .HasColumnName("CreatorId"); b.Property("Description") .HasMaxLength(128) .HasColumnType("varchar(128)"); b.Property("GroupId") .HasColumnType("bigint"); b.Property("LastModificationTime") .HasColumnType("datetime(6)") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("char(36)") .HasColumnName("LastModifierId"); b.Property("MaxUserCount") .HasColumnType("int"); b.Property("Name") .IsRequired() .HasMaxLength(20) .HasColumnType("varchar(20)"); b.Property("Notice") .HasMaxLength(64) .HasColumnType("varchar(64)"); b.Property("Tag") .HasMaxLength(512) .HasColumnType("varchar(512)"); b.Property("TenantId") .HasColumnType("char(36)") .HasColumnName("TenantId"); b.HasKey("Id"); b.HasIndex("TenantId", "Name"); b.ToTable("AppChatGroups", (string)null); }); modelBuilder.Entity("LINGYUN.Abp.MessageService.Groups.GroupChatBlack", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("CreationTime") .HasColumnType("datetime(6)") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("char(36)") .HasColumnName("CreatorId"); b.Property("GroupId") .HasColumnType("bigint"); b.Property("ShieldUserId") .HasColumnType("char(36)"); b.Property("TenantId") .HasColumnType("char(36)") .HasColumnName("TenantId"); b.HasKey("Id"); b.HasIndex("TenantId", "GroupId"); b.ToTable("AppGroupChatBlacks", (string)null); }); modelBuilder.Entity("LINGYUN.Abp.MessageService.Groups.GroupMessage", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("varchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("Content") .IsRequired() .HasMaxLength(1048576) .HasColumnType("longtext"); b.Property("CreationTime") .HasColumnType("datetime(6)") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("char(36)") .HasColumnName("CreatorId"); b.Property("ExtraProperties") .HasColumnType("longtext") .HasColumnName("ExtraProperties"); b.Property("GroupId") .HasColumnType("bigint"); b.Property("MessageId") .HasColumnType("bigint"); b.Property("SendUserName") .IsRequired() .HasMaxLength(64) .HasColumnType("varchar(64)"); b.Property("Source") .HasColumnType("int"); b.Property("State") .HasColumnType("tinyint"); b.Property("TenantId") .HasColumnType("char(36)") .HasColumnName("TenantId"); b.Property("Type") .HasColumnType("int"); b.HasKey("Id"); b.HasIndex("TenantId", "GroupId"); b.ToTable("AppGroupMessages", (string)null); }); modelBuilder.Entity("LINGYUN.Abp.MessageService.Groups.UserChatGroup", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("CreationTime") .HasColumnType("datetime(6)") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("char(36)") .HasColumnName("CreatorId"); b.Property("GroupId") .HasColumnType("bigint"); b.Property("TenantId") .HasColumnType("char(36)") .HasColumnName("TenantId"); b.Property("UserId") .HasColumnType("char(36)"); b.HasKey("Id"); b.HasIndex("TenantId", "GroupId", "UserId"); b.ToTable("AppUserChatGroups", (string)null); }); modelBuilder.Entity("LINGYUN.Abp.MessageService.Groups.UserGroupCard", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("varchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime(6)") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("char(36)") .HasColumnName("CreatorId"); b.Property("ExtraProperties") .HasColumnType("longtext") .HasColumnName("ExtraProperties"); b.Property("IsAdmin") .HasColumnType("tinyint(1)"); b.Property("LastModificationTime") .HasColumnType("datetime(6)") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("char(36)") .HasColumnName("LastModifierId"); b.Property("NickName") .HasMaxLength(256) .HasColumnType("varchar(256)"); b.Property("SilenceEnd") .HasColumnType("datetime(6)"); b.Property("TenantId") .HasColumnType("char(36)") .HasColumnName("TenantId"); b.Property("UserId") .HasColumnType("char(36)"); b.HasKey("Id"); b.HasIndex("TenantId", "UserId"); b.ToTable("AppUserGroupCards", (string)null); }); modelBuilder.Entity("LINGYUN.Abp.MessageService.Notifications.Notification", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("CreationTime") .HasColumnType("datetime(6)") .HasColumnName("CreationTime"); b.Property("ExpirationTime") .HasColumnType("datetime(6)"); b.Property("ExtraProperties") .HasColumnType("longtext") .HasColumnName("ExtraProperties"); b.Property("NotificationId") .HasColumnType("bigint"); b.Property("NotificationName") .IsRequired() .HasMaxLength(100) .HasColumnType("varchar(100)"); b.Property("NotificationTypeName") .IsRequired() .HasMaxLength(512) .HasColumnType("varchar(512)"); b.Property("Severity") .HasColumnType("tinyint"); b.Property("TenantId") .HasColumnType("char(36)") .HasColumnName("TenantId"); b.Property("Type") .HasColumnType("int"); b.HasKey("Id"); b.HasIndex("TenantId", "NotificationName"); b.ToTable("AppNotifications", (string)null); }); modelBuilder.Entity("LINGYUN.Abp.MessageService.Notifications.NotificationDefinitionGroupRecord", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)"); b.Property("AllowSubscriptionToClients") .HasColumnType("tinyint(1)"); b.Property("Description") .HasMaxLength(255) .HasColumnType("varchar(255)"); b.Property("DisplayName") .HasMaxLength(255) .HasColumnType("varchar(255)"); b.Property("ExtraProperties") .HasColumnType("longtext") .HasColumnName("ExtraProperties"); b.Property("Localization") .HasMaxLength(128) .HasColumnType("varchar(128)"); b.Property("Name") .IsRequired() .HasMaxLength(64) .HasColumnType("varchar(64)"); b.Property("ResourceName") .HasMaxLength(64) .HasColumnType("varchar(64)"); b.HasKey("Id"); b.ToTable("AppNotificationDefinitionGroups", (string)null); }); modelBuilder.Entity("LINGYUN.Abp.MessageService.Notifications.NotificationDefinitionRecord", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)"); b.Property("AllowSubscriptionToClients") .HasColumnType("tinyint(1)"); b.Property("Description") .HasMaxLength(255) .HasColumnType("varchar(255)"); b.Property("DisplayName") .HasMaxLength(255) .HasColumnType("varchar(255)"); b.Property("ExtraProperties") .HasColumnType("longtext") .HasColumnName("ExtraProperties"); b.Property("GroupName") .IsRequired() .HasMaxLength(64) .HasColumnType("varchar(64)"); b.Property("Localization") .HasMaxLength(128) .HasColumnType("varchar(128)"); b.Property("Name") .IsRequired() .HasMaxLength(64) .HasColumnType("varchar(64)"); b.Property("NotificationLifetime") .HasColumnType("int"); b.Property("NotificationType") .HasColumnType("int"); b.Property("Providers") .HasMaxLength(200) .HasColumnType("varchar(200)"); b.Property("ResourceName") .HasMaxLength(64) .HasColumnType("varchar(64)"); b.HasKey("Id"); b.ToTable("AppNotificationDefinitions", (string)null); }); modelBuilder.Entity("LINGYUN.Abp.MessageService.Notifications.UserNotification", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("NotificationId") .HasColumnType("bigint"); b.Property("ReadStatus") .HasColumnType("int"); b.Property("TenantId") .HasColumnType("char(36)") .HasColumnName("TenantId"); b.Property("UserId") .HasColumnType("char(36)"); b.HasKey("Id"); b.HasIndex("TenantId", "UserId", "NotificationId") .HasDatabaseName("IX_Tenant_User_Notification_Id"); b.ToTable("AppUserNotifications", (string)null); }); modelBuilder.Entity("LINGYUN.Abp.MessageService.Subscriptions.UserSubscribe", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("CreationTime") .HasColumnType("datetime(6)") .HasColumnName("CreationTime"); b.Property("NotificationName") .IsRequired() .HasMaxLength(100) .HasColumnType("varchar(100)"); b.Property("TenantId") .HasColumnType("char(36)") .HasColumnName("TenantId"); b.Property("UserId") .HasColumnType("char(36)"); b.Property("UserName") .IsRequired() .ValueGeneratedOnAdd() .HasMaxLength(128) .HasColumnType("varchar(128)") .HasDefaultValue("/"); b.HasKey("Id"); b.HasIndex("TenantId", "UserId", "NotificationName") .IsUnique() .HasDatabaseName("IX_Tenant_User_Notification_Name"); b.ToTable("AppUserSubscribes", (string)null); }); #pragma warning restore 612, 618 } } }