Watch
1
0
Fork
You've already forked test-web
0
test-web/src/Infra/Vehicle.cs
Chris Dill 0e79a8eb5e
All checks were successful
Build / build (push) Successful in 52s
Initial commit
2026-05-30 12:26:50 +01:00

30 lines
529 B
C#
Executable file

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace TestWeb.Infra;
public class Vehicle
{
[Key]
public int Id
{
get; init;
}
public required string Make
{
get; set;
}
public required string Model
{
get; set;
}
public required int Year
{
get; set;
}
public DateTime DateCreated { get; private init; } = DateTime.UtcNow;
public DateTime? LastUpdated
{
get; set;
}
}