27 lines
788 B
C#
27 lines
788 B
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Distribution.Models
|
|
{
|
|
public class DeliveryRun : Template
|
|
{
|
|
public RideStatus Status { get; set; } = RideStatus.Open;
|
|
|
|
public Guid FK_VehicleId { get; set; }
|
|
[ForeignKey("FK_VehicleId")]
|
|
public Vehicle Vehicle { get; set; }
|
|
|
|
public Guid FK_DriverProfileId { get; set; }
|
|
[ForeignKey("FK_DriverProfileId")]
|
|
public DriverProfile DriverProfile { get; set; }
|
|
|
|
public int Meterstart { get; set; }
|
|
public int Meterend { get; set; }
|
|
|
|
public DateTime? StartedAt { get; set; }
|
|
public DateTime? ClosedAt { get; set; }
|
|
|
|
public CancelRequestType? CancelTypeCode { get; set; }
|
|
public string? CancelReason { get; set; }
|
|
}
|
|
}
|