feat: добавил изменение промта для админа
Backend CI / build-and-test (push) Failing after 11m26s
🚀 Create and publish a Docker image / Detect changes in backend and frontend (push) Failing after 14m2s
Frontend CI / build-and-check (push) Failing after 19m55s
🚀 Create and publish a Docker image / Build & publish frontend image (push) Failing after 14m7s
🚀 Create and publish a Docker image / Build & publish backend image (push) Failing after 14m59s
🚀 Create and publish a Docker image / Update stack on Portainer (push) Failing after 15m0s
Backend CI / build-and-test (push) Failing after 11m26s
🚀 Create and publish a Docker image / Detect changes in backend and frontend (push) Failing after 14m2s
Frontend CI / build-and-check (push) Failing after 19m55s
🚀 Create and publish a Docker image / Build & publish frontend image (push) Failing after 14m7s
🚀 Create and publish a Docker image / Build & publish backend image (push) Failing after 14m59s
🚀 Create and publish a Docker image / Update stack on Portainer (push) Failing after 15m0s
This commit is contained in:
@@ -20,6 +20,7 @@ public class AppDbContext : DbContext
|
||||
public DbSet<CourseTag> CourseTags { get; set; } = null!;
|
||||
public DbSet<LectureEnrollment> LectureEnrollments { get; set; } = null!;
|
||||
public DbSet<Review> Reviews { get; set; } = null!;
|
||||
public DbSet<ReviewPromptSetting> ReviewPromptSettings { get; set; } = null!;
|
||||
public DbSet<Achievement> Achievements { get; set; } = null!;
|
||||
public DbSet<UserAchievement> UserAchievements { get; set; } = null!;
|
||||
public DbSet<CoinTransaction> CoinTransactions { get; set; } = null!;
|
||||
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using UniVerse.Domain.Entities;
|
||||
|
||||
namespace UniVerse.Infrastructure.Data.Configurations;
|
||||
|
||||
public class ReviewPromptSettingConfiguration : IEntityTypeConfiguration<ReviewPromptSetting>
|
||||
{
|
||||
public void Configure(EntityTypeBuilder<ReviewPromptSetting> builder)
|
||||
{
|
||||
builder.ToTable("review_prompt_settings");
|
||||
|
||||
builder.HasKey(setting => setting.Id);
|
||||
builder.Property(setting => setting.Id)
|
||||
.HasColumnName("id")
|
||||
.ValueGeneratedNever();
|
||||
builder.Property(setting => setting.Prompt)
|
||||
.HasColumnName("prompt")
|
||||
.IsRequired();
|
||||
builder.Property(setting => setting.CreatedAt)
|
||||
.HasColumnName("created_at")
|
||||
.HasDefaultValueSql("NOW()");
|
||||
builder.Property(setting => setting.UpdatedAt)
|
||||
.HasColumnName("updated_at")
|
||||
.HasDefaultValueSql("NOW()");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user