detect/detect.gui/Models/Entities/LogEntity.cs

24 lines
747 B
C#
Raw Normal View History

2024-11-13 17:09:15 +08:00
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace detect.gui.Models.Entities;
[Table("Log")]
[Index(nameof(UserId), IsUnique = false)]
[Index(nameof(CreateTime), IsUnique = false)]
public class LogEntity
{
[Key] public long? Id { get; set; }
[StringLength(255), Comment("描述")] public string? Description { get; set; }
[Comment("操作人ID")] public long? UserId { get; set; }
[StringLength(255), Comment("操作人")] public string? Username { get; set; }
[StringLength(255), Comment("说明")] public string? Remark { get; set; }
[Comment("创建时间")] public DateTime? CreateTime { get; set; }
}