Add TeamMeetingHistory entity, service, and UI components for meeting history management
This commit introduces the TeamMeetingHistory entity, including its configuration and database migrations. A new ITeamMeetingHistoryService interface and its implementation, TeamMeetingHistoryService, are added to handle CRUD operations for meeting histories. Additionally, UI components such as History.razor, MeetingHistoryDetailDialog, and SaveMeetingHistoryDialog are created to facilitate viewing and saving meeting histories. The integration of INoteNamingService enhances note management for meeting records, improving overall functionality and user experience in the application.
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
using Core.Entities;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace Data.Configurations
|
||||
{
|
||||
public class TeamMeetingHistoryConfiguration : IEntityTypeConfiguration<TeamMeetingHistory>
|
||||
{
|
||||
public void Configure(EntityTypeBuilder<TeamMeetingHistory> builder)
|
||||
{
|
||||
builder.HasKey(tmh => tmh.Id);
|
||||
|
||||
// Indexes
|
||||
builder.HasIndex(tmh => tmh.MeetingDate);
|
||||
|
||||
// Constraints
|
||||
builder.Property(tmh => tmh.MeetingDate)
|
||||
.IsRequired();
|
||||
|
||||
builder.HasMany(tmh => tmh.Teams)
|
||||
.WithMany()
|
||||
.UsingEntity(j => j.ToTable("TeamMeetingHistoryTeams"));
|
||||
|
||||
builder.HasMany(tmh => tmh.Students)
|
||||
.WithMany()
|
||||
.UsingEntity(j => j.ToTable("TeamMeetingHistoryStudents"));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user