IM/backend/IM_API/Models/Friend.cs

45 lines
950 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 Friend
{
public int Id { get; set; }
/// <summary>
/// 用户ID
/// </summary>
public int UserId { get; set; }
/// <summary>
/// 用户2ID
/// </summary>
public int FriendId { get; set; }
/// <summary>
/// 当前好友关系状态
/// 0待通过,1已添加,2已拒绝,3已拉黑
/// </summary>
public sbyte Status { get; set; }
/// <summary>
/// 好友关系创建时间
/// </summary>
public DateTime Created { get; set; }
/// <summary>
/// 好友备注名
/// </summary>
public string RemarkName { get; set; } = null!;
/// <summary>
/// 好友头像
/// </summary>
public string? Avatar { get; set; }
public virtual User FriendNavigation { get; set; } = null!;
public virtual User User { get; set; } = null!;
}