This repository has been archived on 2023-04-02. You can view files and clone it, but cannot push or open issues or pull requests.
trainav/trainav.web/database/Tables/Leg.cs

32 lines
1.1 KiB
C#
Raw Normal View History

2020-06-11 20:29:16 +02:00
using LinqToDB.Mapping;
2022-05-03 00:20:02 +02:00
namespace trainav.web.database.Tables;
2022-05-03 00:20:02 +02:00
[Table(Name = "Legs")]
public class Leg {
[Column(Name = "LegID"), PrimaryKey, Identity, NotNull] public int LegId { get; set; }
2022-05-03 00:20:02 +02:00
[Column(Name = "TripID"), NotNull] public int TripId { get; set; }
2022-05-03 00:20:02 +02:00
[Column(Name = "UserID"), NotNull] public int UserId { get; set; }
2022-05-03 00:20:02 +02:00
[Column(Name = "TrainType"), NotNull] public string TrainType { get; set; }
2022-05-03 00:20:02 +02:00
[Column(Name = "TrainNr"), NotNull] public int TrainNr { get; set; }
2020-06-11 20:29:16 +02:00
2022-05-03 00:20:02 +02:00
[Column(Name = "DepStationID"), NotNull] public int DepStationId { get; set; }
2022-05-03 00:20:02 +02:00
[Column(Name = "DepStation"), NotNull] public string DepStation { get; set; }
2020-06-11 20:29:16 +02:00
2022-05-03 00:20:02 +02:00
[Column(Name = "DepTime"), NotNull] public string DepTime { get; set; }
2020-06-11 20:29:16 +02:00
2022-05-03 00:20:02 +02:00
[Column(Name = "ArrStationID"), NotNull] public int ArrStationId { get; set; }
2022-05-03 00:20:02 +02:00
[Column(Name = "ArrStation"), NotNull] public string ArrStation { get; set; }
2020-06-11 20:29:16 +02:00
2022-05-03 00:20:02 +02:00
[Column(Name = "ArrTime"), NotNull] public string ArrTime { get; set; }
2022-05-03 00:20:02 +02:00
[Column(Name = "TicketID")] public int TicketId { get; set; }
[Column(Name = "Comment")] public string Comment { get; set; }
}