// using System; using Hutopy.Web.Features.Contents.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace Hutopy.Web.Features.Contents.Migrations { [DbContext(typeof(ContentDbContext))] [Migration("20240725022229_AddMultipleMediaUrlsToContent")] partial class AddMultipleMediaUrlsToContent { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasDefaultSchema("Content") .HasAnnotation("ProductVersion", "8.0.4") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("Hutopy.Web.Features.Contents.Data.Content", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CreatedAt") .ValueGeneratedOnAdd() .HasColumnType("timestamp with time zone") .HasDefaultValueSql("CURRENT_TIMESTAMP"); b.Property("CreatedBy") .HasColumnType("uuid"); b.Property("Description") .HasColumnType("text"); b.Property("Title") .HasColumnType("text"); b.Property("Urls") .HasColumnType("text[]"); b.HasKey("Id"); b.ToTable("Contents", "Content"); }); #pragma warning restore 612, 618 } } }