using System; using System.Collections.Generic; using Microsoft.EntityFrameworkCore; namespace administration.Models; public partial class StrapiContext : DbContext { public StrapiContext() { } public StrapiContext(DbContextOptions options) : base(options) { } protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) #warning To protect potentially sensitive information in your connection string, you should move it out of source code. You can avoid scaffolding the connection string by using the Name= syntax to read it from configuration - see https://go.microsoft.com/fwlink/?linkid=2131148. For more guidance on storing connection strings, see https://go.microsoft.com/fwlink/?LinkId=723263. => optionsBuilder.UseNpgsql("Host=postgres;Port=5432;Database=strapi;Username=strapi;Password=Mf33ksTRLrPKSqQ4cTXitgiSN6BPBt89"); protected override void OnModelCreating(ModelBuilder modelBuilder) { OnModelCreatingPartial(modelBuilder); } partial void OnModelCreatingPartial(ModelBuilder modelBuilder); }