Set the MongoDB ID to be the key

This commit is contained in:
Robert Marshall 2021-05-08 09:51:26 +01:00
parent 2f38780d2f
commit 84ae81d411

View file

@ -12,10 +12,9 @@ namespace Robware.Data.ApiKeys.State {
} }
[BsonId] [BsonId]
public int Id { get; set; } public string Key { get; set; }
public string Name { get; set; } public string Name { get; set; }
public DateTime IssueTimestamp { get; set; } public DateTime IssueTimestamp { get; set; }
public string Key { get; set; }
public bool Enabled { get; set; } public bool Enabled { get; set; }
} }
} }