Add proposal workflow and voting API
This commit is contained in:
1 parent
9ca23a2c15
commit
1ff4a0a814
17 files changed
+796
-83
No files matched your search
@@ -1,5 +1,7 @@
|
||||
using Helpdesk.Domain.Catalogs;
|
||||
using Helpdesk.Domain.Issues;
|
||||
using Helpdesk.Domain.Notifications;
|
||||
using Helpdesk.Domain.Proposals;
|
||||
using Helpdesk.Domain.Users;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
@@ -50,15 +52,16 @@ internal sealed class AttachmentConfiguration : IEntityTypeConfiguration<Attachm
|
||||
}
|
||||
}
|
||||
|
||||
internal sealed class IssueNotificationConfiguration : IEntityTypeConfiguration<IssueNotification>
|
||||
internal sealed class NotificationConfiguration : IEntityTypeConfiguration<Notification>
|
||||
{
|
||||
public void Configure(EntityTypeBuilder<IssueNotification> b)
|
||||
public void Configure(EntityTypeBuilder<Notification> b)
|
||||
{
|
||||
b.ToTable("notification");
|
||||
b.Property(x => x.Type).HasConversion<EnumCodeConverter<NotificationType>>().HasMaxLength(40);
|
||||
b.Property(x => x.Title).HasMaxLength(200);
|
||||
b.Property(x => x.Message).HasMaxLength(1000);
|
||||
b.HasOne(x => x.Issue).WithMany().HasForeignKey(x => x.IssueId).IsRequired(false);
|
||||
b.HasOne<Proposal>().WithMany().HasForeignKey(x => x.ProposalId);
|
||||
b.HasOne<User>().WithMany().HasForeignKey(x => x.UserId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user