Merge branch 'feature-nxdev' of https://gitea.nxsir.cn/code/IM into feature-nxdev

This commit is contained in:
2025-10-30 14:44:00 +08:00
47 changed files with 1140 additions and 696 deletions
+5 -25
View File
@@ -1,52 +1,32 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace IM_API.Models;
[Table("groupmember")]
[Index("Groupld", Name = "Groupld")]
[Index("Id", Name = "ID")]
[Index("Userld", Name = "Userld")]
[MySqlCharSet("utf8mb4")]
[MySqlCollation("utf8mb4_general_ci")]
public partial class Groupmember
public partial class GroupMember
{
[Key]
[Column("ID", TypeName = "int(11)")]
public int Id { get; set; }
/// <summary>
/// 用户编号
/// </summary>
[Column(TypeName = "int(11)")]
public int Userld { get; set; }
public int UserId { get; set; }
/// <summary>
/// 群聊编号
/// </summary>
[Column(TypeName = "int(11)")]
public int Groupld { get; set; }
public int GroupId { get; set; }
/// <summary>
/// 成员角色(0:普通成员,1:管理员,2:群主)
/// </summary>
[Column(TypeName = "tinyint(4)")]
public sbyte Role { get; set; }
/// <summary>
/// 加入群聊时间
/// </summary>
[Column(TypeName = "datetime")]
public DateTime Created { get; set; }
[ForeignKey("Groupld")]
[InverseProperty("GroupmemberGroupldNavigations")]
public virtual User GroupldNavigation { get; set; } = null!;
public virtual User Group { get; set; } = null!;
[ForeignKey("Userld")]
[InverseProperty("GroupmemberUserldNavigations")]
public virtual User UserldNavigation { get; set; } = null!;
public virtual User User { get; set; } = null!;
}