IM/backend/IM_API/Models/Groupmember.cs

34 lines
689 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
namespace IM_API.Models;
public partial class GroupMember
{
public int Id { get; set; }
/// <summary>
/// 用户编号
/// </summary>
public int UserId { get; set; }
/// <summary>
/// 群聊编号
/// </summary>
public int GroupId { get; set; }
/// <summary>
/// 成员角色0:普通成员,1:管理员,2:群主)
/// </summary>
public sbyte Role { get; set; }
/// <summary>
/// 加入群聊时间
/// </summary>
public DateTime Created { get; set; }
public virtual Group Group { get; set; } = null!;
public virtual User User { get; set; } = null!;
}