added the date in update logs
This commit is contained in:
parent
2c94854f57
commit
30fa924d0f
4437
Marco.Pms.DataAccess/Migrations/20250804053705_Added_Updated_At_In_UpdateLogs.Designer.cs
generated
Normal file
4437
Marco.Pms.DataAccess/Migrations/20250804053705_Added_Updated_At_In_UpdateLogs.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
@ -1311,6 +1311,9 @@ namespace Marco.Pms.DataAccess.Migrations
|
||||
b.Property<Guid>("TenantId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<DateTime?>("UpdateAt")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
b.Property<Guid>("UpdatedById")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
|
@ -18,6 +18,7 @@ namespace Marco.Pms.Model.Expenses
|
||||
[ValidateNever]
|
||||
[ForeignKey("UpdatedById")]
|
||||
public Employee? UpdatedBy { get; set; }
|
||||
public DateTime? UpdateAt { get; set; }
|
||||
public string Action { get; set; } = string.Empty;
|
||||
public string? Comment { get; set; }
|
||||
}
|
||||
|
@ -7,6 +7,7 @@ namespace Marco.Pms.Model.ViewModels.Expenses
|
||||
public Guid Id { get; set; }
|
||||
public BasicEmployeeVM? UpdatedBy { get; set; }
|
||||
public string Action { get; set; } = string.Empty;
|
||||
public DateTime? UpdateAt { get; set; }
|
||||
public string? Comment { get; set; }
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user