Files
IM/backend/IM_API/Models/Notification.cs
nanxun d429560511 Revert "提交"
This reverts commit b96d895809.
2026-02-12 21:59:08 +08:00

39 lines
843 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
namespace IM_API.Models;
public partial class Notification
{
public int Id { get; set; }
/// <summary>
/// 接收人(为空为全体通知)
/// </summary>
public int UserId { get; set; }
/// <summary>
/// 通知类型(0:文本)
/// </summary>
public sbyte Ntype { get; set; }
/// <summary>
/// 通知标题
/// </summary>
public string Title { get; set; } = null!;
/// <summary>
/// 通知内容
/// </summary>
public string Content { get; set; } = null!;
/// <summary>
/// 创建时间
/// </summary>
[Column(TypeName = "datetimeoffset")]
public DateTimeOffset Created { get; set; }
public virtual User User { get; set; } = null!;
}