chat
This commit is contained in:
@@ -683,6 +683,131 @@ namespace LightlessSyncServer.Migrations
|
||||
b.ToTable("lodestone_auth", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("LightlessSyncShared.Models.ReportedChatMessage", b =>
|
||||
{
|
||||
b.Property<int>("ReportId")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("report_id");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("ReportId"));
|
||||
|
||||
b.Property<string>("AdditionalContext")
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("additional_context");
|
||||
|
||||
b.Property<string>("ChannelKey")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("channel_key");
|
||||
|
||||
b.Property<byte>("ChannelType")
|
||||
.HasColumnType("smallint")
|
||||
.HasColumnName("channel_type");
|
||||
|
||||
b.Property<decimal?>("DiscordMessageId")
|
||||
.HasColumnType("numeric(20,0)")
|
||||
.HasColumnName("discord_message_id");
|
||||
|
||||
b.Property<DateTime?>("DiscordMessagePostedAtUtc")
|
||||
.HasColumnType("timestamp with time zone")
|
||||
.HasColumnName("discord_message_posted_at_utc");
|
||||
|
||||
b.Property<string>("MessageContent")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("message_content");
|
||||
|
||||
b.Property<string>("MessageId")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("message_id");
|
||||
|
||||
b.Property<DateTime>("MessageSentAtUtc")
|
||||
.HasColumnType("timestamp with time zone")
|
||||
.HasColumnName("message_sent_at_utc");
|
||||
|
||||
b.Property<string>("Reason")
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("reason");
|
||||
|
||||
b.Property<DateTime>("ReportTimeUtc")
|
||||
.HasColumnType("timestamp with time zone")
|
||||
.HasColumnName("report_time_utc");
|
||||
|
||||
b.Property<string>("ReportedUserUid")
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("reported_user_uid");
|
||||
|
||||
b.Property<string>("ReporterUserUid")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("reporter_user_uid");
|
||||
|
||||
b.Property<string>("ResolutionNotes")
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("resolution_notes");
|
||||
|
||||
b.Property<bool>("Resolved")
|
||||
.HasColumnType("boolean")
|
||||
.HasColumnName("resolved");
|
||||
|
||||
b.Property<DateTime?>("ResolvedAtUtc")
|
||||
.HasColumnType("timestamp with time zone")
|
||||
.HasColumnName("resolved_at_utc");
|
||||
|
||||
b.Property<string>("ResolvedByUserUid")
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("resolved_by_user_uid");
|
||||
|
||||
b.Property<string>("SenderDisplayName")
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("sender_display_name");
|
||||
|
||||
b.Property<string>("SenderHashedCid")
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("sender_hashed_cid");
|
||||
|
||||
b.Property<string>("SenderToken")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("sender_token");
|
||||
|
||||
b.Property<bool>("SenderWasLightfinder")
|
||||
.HasColumnType("boolean")
|
||||
.HasColumnName("sender_was_lightfinder");
|
||||
|
||||
b.Property<string>("SnapshotJson")
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("snapshot_json");
|
||||
|
||||
b.Property<int>("WorldId")
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("world_id");
|
||||
|
||||
b.Property<int>("ZoneId")
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("zone_id");
|
||||
|
||||
b.HasKey("ReportId")
|
||||
.HasName("pk_reported_chat_messages");
|
||||
|
||||
b.HasIndex("DiscordMessageId")
|
||||
.HasDatabaseName("ix_reported_chat_messages_discord_message_id");
|
||||
|
||||
b.HasIndex("MessageId")
|
||||
.IsUnique()
|
||||
.HasDatabaseName("ix_reported_chat_messages_message_id");
|
||||
|
||||
b.HasIndex("ReportedUserUid")
|
||||
.HasDatabaseName("ix_reported_chat_messages_reported_user_uid");
|
||||
|
||||
b.HasIndex("ReporterUserUid")
|
||||
.HasDatabaseName("ix_reported_chat_messages_reporter_user_uid");
|
||||
|
||||
b.ToTable("reported_chat_messages", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("LightlessSyncShared.Models.User", b =>
|
||||
{
|
||||
b.Property<string>("UID")
|
||||
@@ -699,6 +824,10 @@ namespace LightlessSyncServer.Migrations
|
||||
.HasColumnType("boolean")
|
||||
.HasColumnName("has_vanity");
|
||||
|
||||
b.Property<bool>("ChatBanned")
|
||||
.HasColumnType("boolean")
|
||||
.HasColumnName("chat_banned");
|
||||
|
||||
b.Property<bool>("IsAdmin")
|
||||
.HasColumnType("boolean")
|
||||
.HasColumnName("is_admin");
|
||||
|
||||
Reference in New Issue
Block a user