后端:
完善注册页面
This commit is contained in:
@@ -333,6 +333,7 @@ namespace IM_API.Migrations
|
||||
.HasComment("全员禁言(0允许发言,2全员禁言)");
|
||||
|
||||
b.Property<string>("Announcement")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasComment("群公告");
|
||||
|
||||
@@ -392,50 +393,6 @@ namespace IM_API.Migrations
|
||||
MySqlEntityTypeBuilderExtensions.UseCollation(b, "utf8mb4_general_ci");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("IM_API.Models.GroupInvite", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int(11)")
|
||||
.HasColumnName("ID");
|
||||
|
||||
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<DateTimeOffset?>("Created")
|
||||
.HasColumnType("datetime")
|
||||
.HasComment("创建时间");
|
||||
|
||||
b.Property<int>("GroupId")
|
||||
.HasColumnType("int(11)")
|
||||
.HasComment("群聊编号");
|
||||
|
||||
b.Property<int?>("InviteUser")
|
||||
.HasColumnType("int(11)")
|
||||
.HasComment("邀请用户");
|
||||
|
||||
b.Property<int?>("InvitedUser")
|
||||
.HasColumnType("int(11)")
|
||||
.HasComment("被邀请用户");
|
||||
|
||||
b.Property<sbyte?>("State")
|
||||
.HasColumnType("tinyint(4)")
|
||||
.HasComment("当前状态(0:待被邀请人同意\r\n1:被邀请人已同意)");
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex(new[] { "GroupId" }, "GroupId");
|
||||
|
||||
b.HasIndex(new[] { "InviteUser" }, "InviteUser");
|
||||
|
||||
b.HasIndex(new[] { "InvitedUser" }, "InvitedUser");
|
||||
|
||||
b.ToTable("group_invite", (string)null);
|
||||
|
||||
MySqlEntityTypeBuilderExtensions.HasCharSet(b, "utf8mb4");
|
||||
MySqlEntityTypeBuilderExtensions.UseCollation(b, "utf8mb4_general_ci");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("IM_API.Models.GroupMember", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
@@ -502,6 +459,9 @@ namespace IM_API.Migrations
|
||||
.HasColumnType("int(11)")
|
||||
.HasComment("群聊编号\r\n");
|
||||
|
||||
b.Property<int?>("InviteUserId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<sbyte>("State")
|
||||
.HasColumnType("tinyint(4)")
|
||||
.HasComment("申请状态(0:待管理员同意,1:已拒绝,2:已同意)");
|
||||
@@ -515,8 +475,7 @@ namespace IM_API.Migrations
|
||||
|
||||
b.HasIndex("UserId");
|
||||
|
||||
b.HasIndex(new[] { "GroupId" }, "GroupId")
|
||||
.HasDatabaseName("GroupId1");
|
||||
b.HasIndex(new[] { "GroupId" }, "GroupId");
|
||||
|
||||
b.ToTable("group_request", (string)null);
|
||||
|
||||
@@ -844,6 +803,12 @@ namespace IM_API.Migrations
|
||||
.HasDefaultValueSql("'1970-01-01 00:00:00'")
|
||||
.HasComment("创建时间");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.Property<string>("Email")
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.Property<sbyte>("IsDeleted")
|
||||
.HasColumnType("tinyint(4)")
|
||||
.HasComment("软删除标识\r\n0:账号正常\r\n1:账号已删除");
|
||||
@@ -863,6 +828,9 @@ namespace IM_API.Migrations
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasComment("密码");
|
||||
|
||||
b.Property<string>("Region")
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.Property<sbyte>("Status")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("tinyint(4)")
|
||||
@@ -991,31 +959,6 @@ namespace IM_API.Migrations
|
||||
b.Navigation("GroupMasterNavigation");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("IM_API.Models.GroupInvite", b =>
|
||||
{
|
||||
b.HasOne("IM_API.Models.Group", "Group")
|
||||
.WithMany("GroupInvites")
|
||||
.HasForeignKey("GroupId")
|
||||
.IsRequired()
|
||||
.HasConstraintName("group_invite_ibfk_2");
|
||||
|
||||
b.HasOne("IM_API.Models.User", "InviteUserNavigation")
|
||||
.WithMany("GroupInviteInviteUserNavigations")
|
||||
.HasForeignKey("InviteUser")
|
||||
.HasConstraintName("group_invite_ibfk_1");
|
||||
|
||||
b.HasOne("IM_API.Models.User", "InvitedUserNavigation")
|
||||
.WithMany("GroupInviteInvitedUserNavigations")
|
||||
.HasForeignKey("InvitedUser")
|
||||
.HasConstraintName("group_invite_ibfk_3");
|
||||
|
||||
b.Navigation("Group");
|
||||
|
||||
b.Navigation("InviteUserNavigation");
|
||||
|
||||
b.Navigation("InvitedUserNavigation");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("IM_API.Models.GroupMember", b =>
|
||||
{
|
||||
b.HasOne("IM_API.Models.Group", "Group")
|
||||
@@ -1108,8 +1051,6 @@ namespace IM_API.Migrations
|
||||
|
||||
modelBuilder.Entity("IM_API.Models.Group", b =>
|
||||
{
|
||||
b.Navigation("GroupInvites");
|
||||
|
||||
b.Navigation("GroupMembers");
|
||||
|
||||
b.Navigation("GroupRequests");
|
||||
@@ -1148,10 +1089,6 @@ namespace IM_API.Migrations
|
||||
|
||||
b.Navigation("FriendUsers");
|
||||
|
||||
b.Navigation("GroupInviteInviteUserNavigations");
|
||||
|
||||
b.Navigation("GroupInviteInvitedUserNavigations");
|
||||
|
||||
b.Navigation("GroupMembers");
|
||||
|
||||
b.Navigation("GroupRequests");
|
||||
|
||||
Reference in New Issue
Block a user