All checks were successful
Deploy Promiscuity Auth API / deploy (push) Successful in 47s
Deploy Promiscuity Character API / deploy (push) Successful in 59s
Deploy Promiscuity Inventory API / deploy (push) Successful in 47s
Deploy Promiscuity Locations API / deploy (push) Successful in 47s
k8s smoke test / test (push) Successful in 9s
24 lines
572 B
C#
24 lines
572 B
C#
using MongoDB.Bson;
|
|
using MongoDB.Bson.Serialization.Attributes;
|
|
|
|
namespace CharacterApi.Models;
|
|
|
|
public class Character
|
|
{
|
|
[BsonId]
|
|
[BsonRepresentation(BsonType.ObjectId)]
|
|
public string? Id { get; set; }
|
|
|
|
public string OwnerUserId { get; set; } = string.Empty;
|
|
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
public Coord Coord { get; set; } = new();
|
|
|
|
public int VisionRadius { get; set; } = 3;
|
|
|
|
public DateTime LastSeenUtc { get; set; } = DateTime.UtcNow;
|
|
|
|
public DateTime CreatedUtc { get; set; } = DateTime.UtcNow;
|
|
}
|