mirror of
http://git.xinwangdao.com/cnnc-embedded-parts-detect/detect.git
synced 2025-06-24 13:34:13 +08:00
37 lines
1.0 KiB
C#
37 lines
1.0 KiB
C#
using System;
|
|
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace detect.gui.Models.Entities;
|
|
|
|
[Table("dat_task_log")]
|
|
[Index(nameof(TaskId), IsUnique = false)]
|
|
public class DetectTaskLogEntity
|
|
{
|
|
[Key]
|
|
[JsonProperty(PropertyName = "id")]
|
|
[Column("id")]
|
|
public long? Id { get; set; }
|
|
|
|
[StringLength(255), Comment("设备序列号")]
|
|
[JsonProperty(PropertyName = "deviceSn")]
|
|
[Column("device_sn")]
|
|
public string? DeviceSn { get; set; }
|
|
|
|
[JsonProperty(PropertyName = "taskId")]
|
|
[Column("task_id")]
|
|
public long? TaskId { get; set; }
|
|
|
|
[StringLength(255), Comment("内容")]
|
|
[JsonProperty(PropertyName = "content")]
|
|
[Column("content")]
|
|
public string? Content { get; set; }
|
|
|
|
[Comment("创建时间")]
|
|
[JsonProperty(PropertyName = "createTime")]
|
|
[Column("create_time")]
|
|
public DateTime? CreateTime { get; set; }
|
|
} |