-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#380) events: update comments and reactions user history
- Loading branch information
1 parent
fc1eb40
commit 8fada4e
Showing
11 changed files
with
328 additions
and
34 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
...es.Events/src/MiniSpace.Services.Events.Infrastructure/Mongo/Documents/CommentDocument.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System; | ||
using Convey.Types; | ||
|
||
namespace MiniSpace.Services.Events.Infrastructure.Mongo.Documents | ||
{ | ||
public class CommentDocument : IIdentifiable<Guid> | ||
{ | ||
public Guid Id { get; set; } | ||
public Guid ContextId { get; set; } | ||
public string CommentContext { get; set; } | ||
public Guid UserId { get; set; } | ||
public Guid ParentId { get; set; } | ||
public string TextContent { get; set; } | ||
public DateTime CreatedAt { get; set; } | ||
public DateTime LastUpdatedAt { get; set; } | ||
public int RepliesCount { get; set; } | ||
public bool IsDeleted { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...s.Events/src/MiniSpace.Services.Events.Infrastructure/Mongo/Documents/ReactionDocument.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System; | ||
|
||
namespace MiniSpace.Services.Events.Infrastructure.Mongo.Documents | ||
{ | ||
public class ReactionDocument | ||
{ | ||
public Guid Id { get; set; } | ||
public Guid UserId { get; set; } | ||
public Guid ContentId { get; set; } | ||
public string ContentType { get; set; } | ||
public string ReactionType { get; set; } | ||
public string TargetType { get; set; } | ||
public DateTime CreatedAt { get; set; } = DateTime.UtcNow; | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
...ents/src/MiniSpace.Services.Events.Infrastructure/Mongo/Documents/UserCommentsDocument.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using Convey.Types; | ||
using MongoDB.Bson.Serialization.Attributes; | ||
|
||
namespace MiniSpace.Services.Events.Infrastructure.Mongo.Documents | ||
{ | ||
public class UserCommentsDocument : IIdentifiable<Guid> | ||
{ | ||
[BsonId] | ||
[BsonRepresentation(MongoDB.Bson.BsonType.String)] | ||
public Guid Id { get; set; } | ||
public Guid UserId { get; set; } | ||
public IEnumerable<CommentDocument> Comments { get; set; } | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
...ents/src/MiniSpace.Services.Events.Infrastructure/Mongo/Documents/UserReactionDocument.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using Convey.Types; | ||
using MongoDB.Bson.Serialization.Attributes; | ||
|
||
namespace MiniSpace.Services.Events.Infrastructure.Mongo.Documents | ||
{ | ||
public class UserReactionDocument : IIdentifiable<Guid> | ||
{ | ||
[BsonId] | ||
[BsonRepresentation(MongoDB.Bson.BsonType.String)] | ||
public Guid Id { get; set; } | ||
public Guid UserId { get; set; } | ||
public IEnumerable<ReactionDocument> Reactions { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.