added the date in update logs

This commit is contained in:
ashutosh.nehete 2025-08-04 11:12:07 +05:30
parent 2c94854f57
commit 30fa924d0f
5 changed files with 4471 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,29 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Marco.Pms.DataAccess.Migrations
{
/// <inheritdoc />
public partial class Added_Updated_At_In_UpdateLogs : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<DateTime>(
name: "UpdateAt",
table: "ExpenseLogs",
type: "datetime(6)",
nullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "UpdateAt",
table: "ExpenseLogs");
}
}
}

View File

@ -1311,6 +1311,9 @@ namespace Marco.Pms.DataAccess.Migrations
b.Property<Guid>("TenantId") b.Property<Guid>("TenantId")
.HasColumnType("char(36)"); .HasColumnType("char(36)");
b.Property<DateTime?>("UpdateAt")
.HasColumnType("datetime(6)");
b.Property<Guid>("UpdatedById") b.Property<Guid>("UpdatedById")
.HasColumnType("char(36)"); .HasColumnType("char(36)");

View File

@ -18,6 +18,7 @@ namespace Marco.Pms.Model.Expenses
[ValidateNever] [ValidateNever]
[ForeignKey("UpdatedById")] [ForeignKey("UpdatedById")]
public Employee? UpdatedBy { get; set; } public Employee? UpdatedBy { get; set; }
public DateTime? UpdateAt { get; set; }
public string Action { get; set; } = string.Empty; public string Action { get; set; } = string.Empty;
public string? Comment { get; set; } public string? Comment { get; set; }
} }

View File

@ -7,6 +7,7 @@ namespace Marco.Pms.Model.ViewModels.Expenses
public Guid Id { get; set; } public Guid Id { get; set; }
public BasicEmployeeVM? UpdatedBy { get; set; } public BasicEmployeeVM? UpdatedBy { get; set; }
public string Action { get; set; } = string.Empty; public string Action { get; set; } = string.Empty;
public DateTime? UpdateAt { get; set; }
public string? Comment { get; set; } public string? Comment { get; set; }
} }
} }