18 lines
378 B
C#
18 lines
378 B
C#
using MongoDB.Bson;
|
|
using MongoDB.Bson.Serialization.Attributes;
|
|
|
|
namespace CharacterApi.Models;
|
|
|
|
public class VisibleLocation
|
|
{
|
|
[BsonId]
|
|
[BsonRepresentation(BsonType.ObjectId)]
|
|
public string? Id { get; set; }
|
|
|
|
[BsonElement("name")]
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
[BsonElement("coord")]
|
|
public Coord Coord { get; set; } = new();
|
|
}
|