1、优化消息排序逻辑 2、新增加载历史消息 3、修复已知问题 后端: 1、优化消息排序逻辑 2、增加用户信息缓存机制 3、修改日期类型为DateTimeOffset改善时区信息丢失问题 3、修复了已知问题 数据库: 1、新增SequenceId字段用于消息排序 2、新增ClientMsgId字段用于客户端消息回执
31 lines
753 B
C#
31 lines
753 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace IM_API.Models;
|
|
|
|
public partial class Role
|
|
{
|
|
public int Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// 角色名称
|
|
/// </summary>
|
|
public string Name { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// 角色描述
|
|
/// </summary>
|
|
public string Description { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// 创建时间
|
|
/// </summary>
|
|
[Column(TypeName = "datetimeoffset")]
|
|
public DateTimeOffset Created { get; set; }
|
|
|
|
public virtual ICollection<Admin> Admins { get; set; } = new List<Admin>();
|
|
|
|
public virtual ICollection<Permissionarole> Permissionaroles { get; set; } = new List<Permissionarole>();
|
|
}
|