Add project files.
This commit is contained in:
24
Models/Vehicle.cs
Normal file
24
Models/Vehicle.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace LogisticsApp.Server.Models
|
||||
{
|
||||
public class Vehicle
|
||||
{
|
||||
[Key]
|
||||
public int Id { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(100)]
|
||||
public string DriverName { get; set; } = string.Empty;
|
||||
|
||||
[Required]
|
||||
[StringLength(50)]
|
||||
public string VehicleType { get; set; } = string.Empty;
|
||||
|
||||
[Required]
|
||||
[StringLength(20)]
|
||||
public string LicensePlate { get; set; } = string.Empty;
|
||||
|
||||
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user