// using System; using Flensrocker.ToDo.Persistence.PostgreSQL; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace Flensrocker.ToDo.Persistence.PostgreSQL.Migrations { [DbContext(typeof(ToDoDbContext))] partial class ToDoDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasDefaultSchema("ToDo") .HasAnnotation("ProductVersion", "10.0.12") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("Flensrocker.EventSourcing.Persistence.EntityFrameworkCore.MessageEntity", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("CreatedByUserId") .HasColumnType("uuid"); b.Property("GlobalIndex") .ValueGeneratedOnAdd() .HasColumnType("bigint") .HasDefaultValueSql("nextval('\"EventSourcing\".\"GlobalMessageIndex\"')"); b.Property("PayloadJson") .IsRequired() .HasColumnType("jsonb"); b.Property("SpanId") .HasMaxLength(8) .HasColumnType("bytea"); b.Property("StreamId") .HasColumnType("uuid"); b.Property("StreamType") .IsRequired() .HasMaxLength(250) .HasColumnType("character varying(250)"); b.Property("StreamVersion") .HasColumnType("integer"); b.Property("TenantId") .HasColumnType("uuid"); b.Property("TraceId") .HasMaxLength(16) .HasColumnType("bytea"); b.HasKey("Id"); b.HasIndex("GlobalIndex") .IsUnique(); b.HasIndex("StreamType", "GlobalIndex"); b.HasIndex("StreamType", "StreamId", "StreamVersion") .IsUnique(); NpgsqlIndexBuilderExtensions.IncludeProperties(b.HasIndex("StreamType", "StreamId", "StreamVersion"), new[] { "TenantId" }); b.ToTable("Message", "EventSourcing", t => { t.ExcludeFromMigrations(); }); }); modelBuilder.Entity("Flensrocker.ToDo.Abstractions.Tasks.TaskView+DailyStats", b => { b.Property("DailyStatsId") .HasMaxLength(72) .HasColumnType("character varying(72)"); b.Property("CountCompleted") .HasColumnType("integer"); b.Property("CountDismissed") .HasColumnType("integer"); b.Property("CountOpened") .HasColumnType("integer"); b.Property("Day") .HasColumnType("date"); b.Property("TenantId") .HasColumnType("uuid"); b.Property("UserId") .HasColumnType("uuid"); b.HasKey("DailyStatsId"); b.ToTable("TaskDailyStats", "ToDo"); }); modelBuilder.Entity("Flensrocker.ToDo.Abstractions.Tasks.TaskView+ListItem", b => { b.Property("TaskId") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("OpenedAt") .HasColumnType("timestamp with time zone"); b.Property("Status") .HasColumnType("integer"); b.Property("TenantId") .HasColumnType("uuid"); b.Property("Title") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("Version") .HasColumnType("integer"); b.HasKey("TaskId"); b.HasIndex("TenantId", "TaskId") .IsUnique(); b.ToTable("TaskListItem", "ToDo"); }); #pragma warning restore 612, 618 } } }