-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ca2952b
commit 8b751f6
Showing
11 changed files
with
136 additions
and
4 deletions.
There are no files selected for viewing
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,24 @@ | ||
using System; | ||
using System.ComponentModel.DataAnnotations.Schema; | ||
using System.ComponentModel.DataAnnotations; | ||
using InfinityNetServer.BuildingBlocks.Domain.Entities; | ||
|
||
namespace InfinityNetServer.Services.Tag.Domain.Entities | ||
{ | ||
[Table("commentTags")] | ||
public class CommentTag : AuditEntity | ||
{ | ||
[Key] | ||
[Column("id")] | ||
public Guid Id { get; set; } | ||
|
||
[Column("comment_id")] | ||
public Guid CommentId { get; set; } // Links to Comment service | ||
|
||
[Column("tagged_profile_id")] | ||
public Guid TaggedProfileId { get; set; } // Links to Profile service | ||
|
||
// Optional: To enforce unique constraint in code, this can be handled in the DbContext's OnModelCreating method. | ||
} | ||
|
||
} |
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,24 @@ | ||
using System; | ||
using System.ComponentModel.DataAnnotations.Schema; | ||
using System.ComponentModel.DataAnnotations; | ||
using InfinityNetServer.BuildingBlocks.Domain.Entities; | ||
|
||
namespace InfinityNetServer.Services.Tag.Domain.Entities | ||
{ | ||
[Table("post_tags")] | ||
public class PostTag : AuditEntity | ||
{ | ||
[Key] | ||
[Column("id")] | ||
public Guid Id { get; set; } | ||
|
||
[Column("post_id")] | ||
public Guid PostId { get; set; } // Links to Post service | ||
|
||
[Column("tagged_profile_id")] | ||
public Guid TaggedProfileId { get; set; } // Links to Profile service | ||
|
||
// Optional: To enforce unique constraint in code, this can be handled in the DbContext's OnModelCreating method. | ||
} | ||
|
||
} |
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,13 @@ | ||
using InfinityNetServer.BuildingBlocks.Domain.Repositories; | ||
using InfinityNetServer.Services.Tag.Domain.Entities; | ||
using System; | ||
|
||
namespace InfinityNetServer.Services.Tag.Domain.Repositories | ||
{ | ||
public interface ICommentTagRepository : ISqlRepository<CommentTag, Guid> | ||
{ | ||
|
||
|
||
|
||
} | ||
} |
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,13 @@ | ||
using InfinityNetServer.BuildingBlocks.Domain.Repositories; | ||
using InfinityNetServer.Services.Tag.Domain.Entities; | ||
using System; | ||
|
||
namespace InfinityNetServer.Services.Tag.Domain.Repositories | ||
{ | ||
public interface IPostTagRepository : ISqlRepository<PostTag, Guid> | ||
{ | ||
|
||
|
||
|
||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using InfinityNetServer.BuildingBlocks.Infrastructure.PostgreSQL.Repositories; | ||
using InfinityNetServer.Services.Tag.Domain.Repositories; | ||
using InfinityNetServer.Services.Tag.Domain.Entities; | ||
using System; | ||
using Microsoft.EntityFrameworkCore; | ||
|
||
namespace InfinityNetServer.Services.Tag.Infrastructure.Repositories | ||
{ | ||
public class CommentTagRepository : SqlRepository<CommentTag, Guid>, ICommentTagRepository | ||
{ | ||
public CommentTagRepository(DbContext context) : base(context) { } | ||
|
||
|
||
|
||
} | ||
} |
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 InfinityNetServer.BuildingBlocks.Infrastructure.PostgreSQL.Repositories; | ||
using InfinityNetServer.Services.Tag.Domain.Repositories; | ||
using InfinityNetServer.Services.Tag.Domain.Entities; | ||
using System; | ||
using Microsoft.EntityFrameworkCore; | ||
|
||
namespace InfinityNetServer.Services.Tag.Infrastructure.Repositories | ||
{ | ||
public class PostTagRepository : SqlRepository<PostTag, Guid>, IPostTagRepository | ||
{ | ||
public PostTagRepository(DbContext context) : base(context) { } | ||
|
||
|
||
|
||
} | ||
} |
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
File renamed without changes.