// using System; using LINGYUN.Abp.MessageService.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Volo.Abp.EntityFrameworkCore; namespace LINGYUN.Abp.MessageService.Migrations { [DbContext(typeof(MessageServiceHostMigrationsDbContext))] partial class MessageServiceHostMigrationsDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.MySql) .HasAnnotation("ProductVersion", "3.1.7") .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") .HasColumnType("varchar(512) CHARACTER SET utf8mb4") .HasMaxLength(512); b.Property("Birthday") .HasColumnType("datetime(6)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasColumnName("ConcurrencyStamp") .HasColumnType("varchar(40) CHARACTER SET utf8mb4") .HasMaxLength(40); b.Property("CreationTime") .HasColumnName("CreationTime") .HasColumnType("datetime(6)"); b.Property("CreatorId") .HasColumnName("CreatorId") .HasColumnType("char(36)"); b.Property("Description") .HasColumnType("varchar(50) CHARACTER SET utf8mb4") .HasMaxLength(50); b.Property("ExtraProperties") .HasColumnName("ExtraProperties") .HasColumnType("longtext CHARACTER SET utf8mb4"); b.Property("LastModificationTime") .HasColumnName("LastModificationTime") .HasColumnType("datetime(6)"); b.Property("LastModifierId") .HasColumnName("LastModifierId") .HasColumnType("char(36)"); b.Property("NickName") .HasColumnType("varchar(256) CHARACTER SET utf8mb4") .HasMaxLength(256); b.Property("Sex") .HasColumnType("int"); b.Property("Sign") .HasColumnType("varchar(30) CHARACTER SET utf8mb4") .HasMaxLength(30); b.Property("TenantId") .HasColumnName("TenantId") .HasColumnType("char(36)"); b.Property("UserId") .HasColumnType("char(36)"); b.Property("UserName") .IsRequired() .HasColumnType("varchar(256) CHARACTER SET utf8mb4") .HasMaxLength(256); b.HasKey("Id"); b.HasIndex("TenantId", "UserId"); b.ToTable("AppUserChatCards"); }); modelBuilder.Entity("LINGYUN.Abp.MessageService.Chat.UserChatFriend", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("Black") .HasColumnType("tinyint(1)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasColumnName("ConcurrencyStamp") .HasColumnType("varchar(40) CHARACTER SET utf8mb4") .HasMaxLength(40); b.Property("CreationTime") .HasColumnName("CreationTime") .HasColumnType("datetime(6)"); b.Property("CreatorId") .HasColumnName("CreatorId") .HasColumnType("char(36)"); b.Property("Description") .HasColumnType("varchar(50) CHARACTER SET utf8mb4") .HasMaxLength(50); b.Property("DontDisturb") .HasColumnType("tinyint(1)"); b.Property("ExtraProperties") .HasColumnName("ExtraProperties") .HasColumnType("longtext CHARACTER SET utf8mb4"); b.Property("FrientId") .HasColumnType("char(36)"); b.Property("RemarkName") .HasColumnType("varchar(256) CHARACTER SET utf8mb4") .HasMaxLength(256); b.Property("SpecialFocus") .HasColumnType("tinyint(1)"); b.Property("Status") .HasColumnType("tinyint unsigned"); b.Property("TenantId") .HasColumnName("TenantId") .HasColumnType("char(36)"); b.Property("UserId") .HasColumnType("char(36)"); b.HasKey("Id"); b.HasIndex("TenantId", "UserId", "FrientId"); b.ToTable("AppUserChatFriends"); }); 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") .HasColumnName("TenantId") .HasColumnType("char(36)"); b.Property("UserId") .HasColumnType("char(36)"); b.HasKey("Id"); b.HasIndex("TenantId", "UserId"); b.ToTable("AppUserChatSettings"); }); modelBuilder.Entity("LINGYUN.Abp.MessageService.Chat.UserMessage", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasColumnName("ConcurrencyStamp") .HasColumnType("varchar(40) CHARACTER SET utf8mb4") .HasMaxLength(40); b.Property("Content") .IsRequired() .HasColumnType("longtext CHARACTER SET utf8mb4") .HasMaxLength(1048576); b.Property("CreationTime") .HasColumnName("CreationTime") .HasColumnType("datetime(6)"); b.Property("CreatorId") .HasColumnName("CreatorId") .HasColumnType("char(36)"); b.Property("ExtraProperties") .HasColumnName("ExtraProperties") .HasColumnType("longtext CHARACTER SET utf8mb4"); b.Property("MessageId") .HasColumnType("bigint"); b.Property("ReceiveUserId") .HasColumnType("char(36)"); b.Property("SendState") .HasColumnType("tinyint"); b.Property("SendUserName") .IsRequired() .HasColumnType("varchar(64) CHARACTER SET utf8mb4") .HasMaxLength(64); b.Property("TenantId") .HasColumnName("TenantId") .HasColumnType("char(36)"); b.Property("Type") .HasColumnType("int"); b.HasKey("Id"); b.HasIndex("TenantId", "ReceiveUserId"); b.ToTable("AppUserMessages"); }); modelBuilder.Entity("LINGYUN.Abp.MessageService.Group.ChatGroup", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("Address") .HasColumnType("varchar(256) CHARACTER SET utf8mb4") .HasMaxLength(256); b.Property("AdminUserId") .HasColumnType("char(36)"); b.Property("AllowAnonymous") .HasColumnType("tinyint(1)"); b.Property("AllowSendMessage") .HasColumnType("tinyint(1)"); b.Property("CreationTime") .HasColumnName("CreationTime") .HasColumnType("datetime(6)"); b.Property("CreatorId") .HasColumnName("CreatorId") .HasColumnType("char(36)"); b.Property("Description") .HasColumnType("varchar(128) CHARACTER SET utf8mb4") .HasMaxLength(128); b.Property("GroupId") .HasColumnType("bigint"); b.Property("LastModificationTime") .HasColumnName("LastModificationTime") .HasColumnType("datetime(6)"); b.Property("LastModifierId") .HasColumnName("LastModifierId") .HasColumnType("char(36)"); b.Property("MaxUserCount") .HasColumnType("int"); b.Property("Name") .IsRequired() .HasColumnType("varchar(20) CHARACTER SET utf8mb4") .HasMaxLength(20); b.Property("Notice") .HasColumnType("varchar(64) CHARACTER SET utf8mb4") .HasMaxLength(64); b.Property("Tag") .HasColumnType("varchar(512) CHARACTER SET utf8mb4") .HasMaxLength(512); b.Property("TenantId") .HasColumnName("TenantId") .HasColumnType("char(36)"); b.HasKey("Id"); b.HasIndex("TenantId", "Name"); b.ToTable("AppChatGroups"); }); modelBuilder.Entity("LINGYUN.Abp.MessageService.Group.GroupChatBlack", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("CreationTime") .HasColumnName("CreationTime") .HasColumnType("datetime(6)"); b.Property("CreatorId") .HasColumnName("CreatorId") .HasColumnType("char(36)"); b.Property("GroupId") .HasColumnType("bigint"); b.Property("ShieldUserId") .HasColumnType("char(36)"); b.Property("TenantId") .HasColumnName("TenantId") .HasColumnType("char(36)"); b.HasKey("Id"); b.HasIndex("TenantId", "GroupId"); b.ToTable("AppGroupChatBlacks"); }); modelBuilder.Entity("LINGYUN.Abp.MessageService.Group.GroupMessage", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasColumnName("ConcurrencyStamp") .HasColumnType("varchar(40) CHARACTER SET utf8mb4") .HasMaxLength(40); b.Property("Content") .IsRequired() .HasColumnType("longtext CHARACTER SET utf8mb4") .HasMaxLength(1048576); b.Property("CreationTime") .HasColumnName("CreationTime") .HasColumnType("datetime(6)"); b.Property("CreatorId") .HasColumnName("CreatorId") .HasColumnType("char(36)"); b.Property("ExtraProperties") .HasColumnName("ExtraProperties") .HasColumnType("longtext CHARACTER SET utf8mb4"); b.Property("GroupId") .HasColumnType("bigint"); b.Property("MessageId") .HasColumnType("bigint"); b.Property("SendState") .HasColumnType("tinyint"); b.Property("SendUserName") .IsRequired() .HasColumnType("varchar(64) CHARACTER SET utf8mb4") .HasMaxLength(64); b.Property("TenantId") .HasColumnName("TenantId") .HasColumnType("char(36)"); b.Property("Type") .HasColumnType("int"); b.HasKey("Id"); b.HasIndex("TenantId", "GroupId"); b.ToTable("AppGroupMessages"); }); modelBuilder.Entity("LINGYUN.Abp.MessageService.Group.UserChatGroup", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("CreationTime") .HasColumnName("CreationTime") .HasColumnType("datetime(6)"); b.Property("CreatorId") .HasColumnName("CreatorId") .HasColumnType("char(36)"); b.Property("GroupId") .HasColumnType("bigint"); b.Property("TenantId") .HasColumnName("TenantId") .HasColumnType("char(36)"); b.Property("UserId") .HasColumnType("char(36)"); b.HasKey("Id"); b.HasIndex("TenantId", "GroupId", "UserId"); b.ToTable("AppUserChatGroups"); }); modelBuilder.Entity("LINGYUN.Abp.MessageService.Group.UserGroupCard", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasColumnName("ConcurrencyStamp") .HasColumnType("varchar(40) CHARACTER SET utf8mb4") .HasMaxLength(40); b.Property("CreationTime") .HasColumnName("CreationTime") .HasColumnType("datetime(6)"); b.Property("CreatorId") .HasColumnName("CreatorId") .HasColumnType("char(36)"); b.Property("ExtraProperties") .HasColumnName("ExtraProperties") .HasColumnType("longtext CHARACTER SET utf8mb4"); b.Property("IsAdmin") .HasColumnType("tinyint(1)"); b.Property("LastModificationTime") .HasColumnName("LastModificationTime") .HasColumnType("datetime(6)"); b.Property("LastModifierId") .HasColumnName("LastModifierId") .HasColumnType("char(36)"); b.Property("NickName") .HasColumnType("varchar(256) CHARACTER SET utf8mb4") .HasMaxLength(256); b.Property("SilenceEnd") .HasColumnType("datetime(6)"); b.Property("TenantId") .HasColumnName("TenantId") .HasColumnType("char(36)"); b.Property("UserId") .HasColumnType("char(36)"); b.HasKey("Id"); b.HasIndex("TenantId", "UserId"); b.ToTable("AppUserGroupCards"); }); modelBuilder.Entity("LINGYUN.Abp.MessageService.Notifications.Notification", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("CreationTime") .HasColumnName("CreationTime") .HasColumnType("datetime(6)"); b.Property("ExpirationTime") .HasColumnType("datetime(6)"); b.Property("NotificationData") .IsRequired() .HasColumnType("longtext CHARACTER SET utf8mb4") .HasMaxLength(1048576); b.Property("NotificationId") .HasColumnType("bigint"); b.Property("NotificationName") .IsRequired() .HasColumnType("varchar(100) CHARACTER SET utf8mb4") .HasMaxLength(100); b.Property("NotificationTypeName") .IsRequired() .HasColumnType("varchar(512) CHARACTER SET utf8mb4") .HasMaxLength(512); b.Property("Severity") .HasColumnType("tinyint"); b.Property("TenantId") .HasColumnName("TenantId") .HasColumnType("char(36)"); b.Property("Type") .HasColumnType("int"); b.HasKey("Id"); b.HasIndex("TenantId", "NotificationName"); b.ToTable("AppNotifications"); }); 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") .HasColumnName("TenantId") .HasColumnType("char(36)"); b.Property("UserId") .HasColumnType("char(36)"); b.HasKey("Id"); b.HasIndex("TenantId", "UserId", "NotificationId") .HasName("IX_Tenant_User_Notification_Id"); b.ToTable("AppUserNotifications"); }); modelBuilder.Entity("LINGYUN.Abp.MessageService.Subscriptions.UserSubscribe", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("CreationTime") .HasColumnName("CreationTime") .HasColumnType("datetime(6)"); b.Property("NotificationName") .IsRequired() .HasColumnType("varchar(100) CHARACTER SET utf8mb4") .HasMaxLength(100); b.Property("TenantId") .HasColumnName("TenantId") .HasColumnType("char(36)"); b.Property("UserId") .HasColumnType("char(36)"); b.Property("UserName") .IsRequired() .ValueGeneratedOnAdd() .HasColumnType("varchar(128) CHARACTER SET utf8mb4") .HasMaxLength(128) .HasDefaultValue("/"); b.HasKey("Id"); b.HasIndex("TenantId", "UserId", "NotificationName") .IsUnique() .HasName("IX_Tenant_User_Notification_Name"); b.ToTable("AppUserSubscribes"); }); #pragma warning restore 612, 618 } } }