- Created a new migration to add the LeaveProcessJobStatuses table. - The table includes fields for job status, timestamps, user information, and error messages. - Supports tracking of leave process job statuses with relevant metadata.
37 lines
No EOL
1.4 KiB
C#
37 lines
No EOL
1.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using BMA.EHR.Domain.Models.Base;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace BMA.EHR.Domain.Models.Leave.TimeAttendants
|
|
{
|
|
public class LeaveProcessJobStatus: EntityBase
|
|
{
|
|
[Required, Comment("วันเริ่มต้น")]
|
|
public DateTime StartDate { get; set; }
|
|
|
|
[Required, Comment("วันสิ้นสุด")]
|
|
public DateTime EndDate { get; set; }
|
|
|
|
[Required, Comment("รหัส Root DNA Id")]
|
|
public Guid RootDnaId { get; set; } = Guid.Empty;
|
|
|
|
[Comment("วันเวลาที่สร้างงาน")]
|
|
public DateTime CreatedDate { get; set; } = DateTime.Now;
|
|
|
|
[Comment("วันเวลาที่เริ่มประมวลผล")]
|
|
public DateTime? ProcessingDate { get; set; }
|
|
|
|
[Comment("วันเวลาที่เสร็จสิ้นการประมวลผล")]
|
|
public DateTime? CompletedDate { get; set; }
|
|
|
|
[Required, Comment("สถานะงาน: PENDING, PROCESSING, COMPLETED, FAILED")]
|
|
public string Status { get; set; } = "PENDING";
|
|
|
|
[Comment("ข้อความแสดงข้อผิดพลาด")]
|
|
public string? ErrorMessage { get; set; }
|
|
}
|
|
} |