27 lines
771 B
C#
27 lines
771 B
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Distribution.Models
|
|
{
|
|
public class RouteVisitLog : Template
|
|
{
|
|
public Guid FK_RouteId { get; set; }
|
|
[ForeignKey("FK_RouteId")]
|
|
public Route Route { get; set; }
|
|
|
|
public Guid FK_StoreId { get; set; }
|
|
[ForeignKey("FK_StoreId")]
|
|
public Store Store { get; set; }
|
|
|
|
public Guid FK_UserId { get; set; }
|
|
[ForeignKey("FK_UserId")]
|
|
public User User { get; set; }
|
|
|
|
public DateTime CheckInAt { get; set; }
|
|
public decimal CheckInLatitude { get; set; }
|
|
public decimal CheckInLongitude { get; set; }
|
|
public bool IsDeviationFlagged { get; set; } = false;
|
|
|
|
public DateTime? CheckOutAt { get; set; }
|
|
}
|
|
}
|