2022-12-27 18:28:42 +02:00
|
|
|
using MongoDB.Bson;
|
|
|
|
using MongoDB.Bson.Serialization.Attributes;
|
2023-09-03 04:13:26 +03:00
|
|
|
using Newtonsoft.Json;
|
2022-12-27 18:28:42 +02:00
|
|
|
|
|
|
|
namespace Server.Models.Database;
|
|
|
|
|
|
|
|
public record StationAlias(
|
|
|
|
[property: BsonId]
|
|
|
|
[property: BsonRepresentation(BsonType.ObjectId)]
|
2023-09-03 04:13:26 +03:00
|
|
|
[property: JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
|
2022-12-27 18:28:42 +02:00
|
|
|
string? Id,
|
|
|
|
string Name,
|
|
|
|
[property: BsonRepresentation(BsonType.ObjectId)]
|
|
|
|
string? ListingId
|
|
|
|
) {
|
|
|
|
public StationAlias() : this(null, "", null) { }
|
|
|
|
}
|