前端:
1、完善创建群聊逻辑 后端: 1、完善群聊相关接口
This commit is contained in:
+1117
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,49 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IM_API.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class updategroupgroupiduserid : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "group_request_ibfk_2",
|
||||
table: "group_request");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_group_request_UserId",
|
||||
table: "group_request",
|
||||
column: "UserId");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "group_request_ibfk_2",
|
||||
table: "group_request",
|
||||
column: "UserId",
|
||||
principalTable: "users",
|
||||
principalColumn: "ID");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "group_request_ibfk_2",
|
||||
table: "group_request");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_group_request_UserId",
|
||||
table: "group_request");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "group_request_ibfk_2",
|
||||
table: "group_request",
|
||||
column: "GroupId",
|
||||
principalTable: "users",
|
||||
principalColumn: "ID");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -513,6 +513,8 @@ namespace IM_API.Migrations
|
||||
b.HasKey("Id")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("UserId");
|
||||
|
||||
b.HasIndex(new[] { "GroupId" }, "GroupId")
|
||||
.HasDatabaseName("GroupId1");
|
||||
|
||||
@@ -985,15 +987,15 @@ namespace IM_API.Migrations
|
||||
.IsRequired()
|
||||
.HasConstraintName("group_request_ibfk_1");
|
||||
|
||||
b.HasOne("IM_API.Models.User", "GroupNavigation")
|
||||
b.HasOne("IM_API.Models.User", "User")
|
||||
.WithMany("GroupRequests")
|
||||
.HasForeignKey("GroupId")
|
||||
.HasForeignKey("UserId")
|
||||
.IsRequired()
|
||||
.HasConstraintName("group_request_ibfk_2");
|
||||
|
||||
b.Navigation("Group");
|
||||
|
||||
b.Navigation("GroupNavigation");
|
||||
b.Navigation("User");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("IM_API.Models.LoginLog", b =>
|
||||
|
||||
Reference in New Issue
Block a user