You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
492 lines
17 KiB
492 lines
17 KiB
// <auto-generated />
|
|
using System;
|
|
using LINGYUN.Abp.MessageService.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
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("ProductVersion", "3.1.3")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
|
|
|
modelBuilder.Entity("LINGYUN.Abp.MessageService.Messages.ChatGroup", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("Address")
|
|
.HasColumnType("varchar(256) CHARACTER SET utf8mb4")
|
|
.HasMaxLength(256);
|
|
|
|
b.Property<bool>("AllowAnonymous")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("AllowSendMessage")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnName("CreationTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnName("CreatorId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<string>("Description")
|
|
.HasColumnType("varchar(128) CHARACTER SET utf8mb4")
|
|
.HasMaxLength(128);
|
|
|
|
b.Property<long>("GroupId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnName("LastModificationTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnName("LastModifierId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<int>("MaxUserCount")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("varchar(20) CHARACTER SET utf8mb4")
|
|
.HasMaxLength(20);
|
|
|
|
b.Property<string>("Notice")
|
|
.HasColumnType("varchar(64) CHARACTER SET utf8mb4")
|
|
.HasMaxLength(64);
|
|
|
|
b.Property<string>("Tag")
|
|
.HasColumnType("varchar(512) CHARACTER SET utf8mb4")
|
|
.HasMaxLength(512);
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnName("TenantId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TenantId", "Name");
|
|
|
|
b.ToTable("AppChatGroups");
|
|
});
|
|
|
|
modelBuilder.Entity("LINGYUN.Abp.MessageService.Messages.ChatGroupAdmin", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<bool>("AllowAddPeople")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("AllowDissolveGroup")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("AllowKickPeople")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("AllowSendNotice")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("AllowSilence")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<long>("GroupId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<bool>("IsSuperAdmin")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnName("TenantId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<Guid>("UserId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TenantId", "GroupId");
|
|
|
|
b.ToTable("AppChatGroupAdmins");
|
|
});
|
|
|
|
modelBuilder.Entity("LINGYUN.Abp.MessageService.Messages.GroupChatBlack", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<long>("GroupId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<Guid>("ShieldUserId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnName("TenantId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TenantId", "GroupId");
|
|
|
|
b.ToTable("AppGroupChatBlacks");
|
|
});
|
|
|
|
modelBuilder.Entity("LINGYUN.Abp.MessageService.Messages.GroupMessage", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("Content")
|
|
.IsRequired()
|
|
.HasColumnType("longtext CHARACTER SET utf8mb4")
|
|
.HasMaxLength(1048576);
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnName("CreationTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<long>("GroupId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("MessageId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<sbyte>("SendState")
|
|
.HasColumnType("tinyint");
|
|
|
|
b.Property<string>("SendUserName")
|
|
.IsRequired()
|
|
.HasColumnType("varchar(64) CHARACTER SET utf8mb4")
|
|
.HasMaxLength(64);
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnName("TenantId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TenantId", "GroupId");
|
|
|
|
b.ToTable("AppGroupMessages");
|
|
});
|
|
|
|
modelBuilder.Entity("LINGYUN.Abp.MessageService.Messages.UserChatBlack", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<Guid>("ShieldUserId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnName("TenantId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<Guid>("UserId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TenantId", "UserId");
|
|
|
|
b.ToTable("AppUserChatBlacks");
|
|
});
|
|
|
|
modelBuilder.Entity("LINGYUN.Abp.MessageService.Messages.UserChatGroup", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnName("CreationTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnName("CreatorId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<long>("GroupId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnName("TenantId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<Guid>("UserId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TenantId", "GroupId", "UserId");
|
|
|
|
b.ToTable("AppUserChatGroups");
|
|
});
|
|
|
|
modelBuilder.Entity("LINGYUN.Abp.MessageService.Messages.UserChatSetting", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<bool>("AllowAddFriend")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("AllowAnonymous")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("AllowReceiveMessage")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("AllowSendMessage")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("RequireAddFriendValition")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnName("TenantId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<Guid>("UserId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TenantId", "UserId");
|
|
|
|
b.ToTable("AppUserChatSettings");
|
|
});
|
|
|
|
modelBuilder.Entity("LINGYUN.Abp.MessageService.Messages.UserMessage", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("Content")
|
|
.IsRequired()
|
|
.HasColumnType("longtext CHARACTER SET utf8mb4")
|
|
.HasMaxLength(1048576);
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnName("CreationTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<long>("MessageId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<Guid>("ReceiveUserId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<sbyte>("SendState")
|
|
.HasColumnType("tinyint");
|
|
|
|
b.Property<string>("SendUserName")
|
|
.IsRequired()
|
|
.HasColumnType("varchar(64) CHARACTER SET utf8mb4")
|
|
.HasMaxLength(64);
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnName("TenantId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TenantId", "ReceiveUserId");
|
|
|
|
b.ToTable("AppUserMessages");
|
|
});
|
|
|
|
modelBuilder.Entity("LINGYUN.Abp.MessageService.Messages.UserSpecialFocus", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<Guid>("FocusUserId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnName("TenantId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<Guid>("UserId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TenantId", "UserId");
|
|
|
|
b.ToTable("AppUserSpecialFocuss");
|
|
});
|
|
|
|
modelBuilder.Entity("LINGYUN.Abp.MessageService.Notifications.Notification", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnName("CreationTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<DateTime?>("ExpirationTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<string>("NotificationData")
|
|
.IsRequired()
|
|
.HasColumnType("longtext CHARACTER SET utf8mb4")
|
|
.HasMaxLength(1048576);
|
|
|
|
b.Property<long>("NotificationId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("NotificationName")
|
|
.IsRequired()
|
|
.HasColumnType("varchar(100) CHARACTER SET utf8mb4")
|
|
.HasMaxLength(100);
|
|
|
|
b.Property<string>("NotificationTypeName")
|
|
.IsRequired()
|
|
.HasColumnType("varchar(512) CHARACTER SET utf8mb4")
|
|
.HasMaxLength(512);
|
|
|
|
b.Property<sbyte>("Severity")
|
|
.HasColumnType("tinyint");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnName("TenantId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("NotificationName");
|
|
|
|
b.ToTable("AppNotifications");
|
|
});
|
|
|
|
modelBuilder.Entity("LINGYUN.Abp.MessageService.Notifications.UserNotification", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("NotificationId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<int>("ReadStatus")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnName("TenantId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<Guid>("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<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnName("CreationTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<string>("NotificationName")
|
|
.IsRequired()
|
|
.HasColumnType("varchar(100) CHARACTER SET utf8mb4")
|
|
.HasMaxLength(100);
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnName("TenantId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<Guid>("UserId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TenantId", "UserId", "NotificationName")
|
|
.IsUnique()
|
|
.HasName("IX_Tenant_User_Notification_Name");
|
|
|
|
b.ToTable("AppUserSubscribes");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|
|
|