using System.Collections.Generic; using MongoDB.Bson; using MongoDB.Bson.Serialization.Attributes; using Newtonsoft.Json; namespace Server.Models.Database; public record StationListing( [property: BsonId] [property: BsonRepresentation(BsonType.ObjectId)] [property: JsonProperty(NullValueHandling = NullValueHandling.Ignore)] string? Id, string Name, List StoppedAtBy ) { public StationListing() : this(null, "", new()) { } public StationListing(string name, List stoppedAtBy) : this(null, name, stoppedAtBy) { } }