aboutsummaryrefslogtreecommitdiff
path: root/src/Costasdev.Busurbano.ServiceViewer/Data/Gtfs/Feed.cs
diff options
context:
space:
mode:
authorAriel Costas Guerrero <ariel@costas.dev>2025-12-12 08:56:32 +0100
committerAriel Costas Guerrero <ariel@costas.dev>2025-12-12 10:24:53 +0100
commitd65ce8288bbda3cb6e0b37613c29d7bf52703ba7 (patch)
treef6aaf58bbebeaa9b147e895ff8a5388881fa51d8 /src/Costasdev.Busurbano.ServiceViewer/Data/Gtfs/Feed.cs
parent661cccc2da9a6c32b7b56c60313787282a9084ea (diff)
Some rework on the ServiceViewer (which will be repurposed for live multi-GTFS serving)
Diffstat (limited to 'src/Costasdev.Busurbano.ServiceViewer/Data/Gtfs/Feed.cs')
-rw-r--r--src/Costasdev.Busurbano.ServiceViewer/Data/Gtfs/Feed.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/Costasdev.Busurbano.ServiceViewer/Data/Gtfs/Feed.cs b/src/Costasdev.Busurbano.ServiceViewer/Data/Gtfs/Feed.cs
new file mode 100644
index 0000000..065250b
--- /dev/null
+++ b/src/Costasdev.Busurbano.ServiceViewer/Data/Gtfs/Feed.cs
@@ -0,0 +1,21 @@
+using System.ComponentModel.DataAnnotations;
+using System.ComponentModel.DataAnnotations.Schema;
+
+namespace Costasdev.ServiceViewer.Data.Gtfs;
+
+[Table("feeds")]
+public class Feed
+{
+ /// <summary>
+ /// Auto-incrementing ID value for each feed, to identify it and its version
+ /// </summary>
+ [Key]
+ public int Id { get; set; }
+
+ [MaxLength(32)] public string ShortName { get; set; }
+ [MaxLength(32)] public string LongName { get; set; }
+ [MaxLength(255)] public string DownloadUrl { get; set; }
+ [MaxLength(32)] public string Etag { get; set; }
+
+ public DateTime InsertedAt { get; set; }
+}