Something went wrong. Try again.
Event Sourcing Framework on top of Microsoft Orleans and PostgreSQL
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150// <auto-generated />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<Guid>("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid");
b.Property<DateTimeOffset>("CreatedAt") .HasColumnType("timestamp with time zone");
b.Property<Guid?>("CreatedByUserId") .HasColumnType("uuid");
b.Property<long>("GlobalIndex") .ValueGeneratedOnAdd() .HasColumnType("bigint") .HasDefaultValueSql("nextval('\"EventSourcing\".\"GlobalMessageIndex\"')");
b.Property<string>("PayloadJson") .IsRequired() .HasColumnType("jsonb");
b.Property<byte[]>("SpanId") .HasMaxLength(8) .HasColumnType("bytea");
b.Property<Guid>("StreamId") .HasColumnType("uuid");
b.Property<string>("StreamType") .IsRequired() .HasMaxLength(250) .HasColumnType("character varying(250)");
b.Property<int>("StreamVersion") .HasColumnType("integer");
b.Property<Guid?>("TenantId") .HasColumnType("uuid");
b.Property<byte[]>("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<string>("DailyStatsId") .HasMaxLength(72) .HasColumnType("character varying(72)");
b.Property<int>("CountCompleted") .HasColumnType("integer");
b.Property<int>("CountDismissed") .HasColumnType("integer");
b.Property<int>("CountOpened") .HasColumnType("integer");
b.Property<DateOnly>("Day") .HasColumnType("date");
b.Property<Guid?>("TenantId") .HasColumnType("uuid");
b.Property<Guid?>("UserId") .HasColumnType("uuid");
b.HasKey("DailyStatsId");
b.ToTable("TaskDailyStats", "ToDo"); });
modelBuilder.Entity("Flensrocker.ToDo.Abstractions.Tasks.TaskView+ListItem", b => { b.Property<Guid>("TaskId") .ValueGeneratedOnAdd() .HasColumnType("uuid");
b.Property<DateTimeOffset>("OpenedAt") .HasColumnType("timestamp with time zone");
b.Property<int>("Status") .HasColumnType("integer");
b.Property<Guid?>("TenantId") .HasColumnType("uuid");
b.Property<string>("Title") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)");
b.Property<int>("Version") .HasColumnType("integer");
b.HasKey("TaskId");
b.HasIndex("TenantId", "TaskId") .IsUnique();
b.ToTable("TaskListItem", "ToDo"); });#pragma warning restore 612, 618 } }}