before deleting Rules
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
|
||||
namespace Gameboard.ShogiUI.Sockets.Repositories.CouchModels
|
||||
{
|
||||
public abstract class CouchDocument
|
||||
{
|
||||
[JsonProperty("_id")]
|
||||
public string Id { get; set; }
|
||||
public string Type { get; set; }
|
||||
public DateTimeOffset CreatedDate { get; set; }
|
||||
|
||||
public CouchDocument()
|
||||
{
|
||||
Id = string.Empty;
|
||||
Type = string.Empty;
|
||||
CreatedDate = DateTimeOffset.UtcNow;
|
||||
}
|
||||
public CouchDocument(string id, string type)
|
||||
{
|
||||
Id = id;
|
||||
Type = type;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user