You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
488 B
18 lines
488 B
2 years ago
|
using System.Text.Json.Serialization;
|
||
|
using MongoDB.Bson;
|
||
|
using MongoDB.Bson.Serialization.Attributes;
|
||
|
|
||
|
namespace Server.Models.Database;
|
||
|
|
||
|
public record StationAlias(
|
||
|
[property: BsonId]
|
||
|
[property: BsonRepresentation(BsonType.ObjectId)]
|
||
|
[property: JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
||
|
string? Id,
|
||
|
string Name,
|
||
|
[property: BsonRepresentation(BsonType.ObjectId)]
|
||
|
string? ListingId
|
||
|
) {
|
||
|
public StationAlias() : this(null, "", null) { }
|
||
|
}
|