119 lines
4.3 KiB
C#
119 lines
4.3 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using Mccn.Modules.Hello.Infrastructure.Database;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|
|
|
#nullable disable
|
|
|
|
namespace Mccn.Modules.Hello.Infrastructure.Migrations
|
|
{
|
|
[DbContext(typeof(HelloDbContext))]
|
|
[Migration("20260315153129_InitialCreate")]
|
|
partial class InitialCreate
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasDefaultSchema("hello")
|
|
.HasAnnotation("ProductVersion", "10.0.4")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
|
|
|
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
|
|
|
modelBuilder.Entity("Mccn.Common.Infrastructure.Inbox.InboxMessage", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("id");
|
|
|
|
b.Property<string>("Content")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("content");
|
|
|
|
b.Property<string>("Error")
|
|
.HasColumnType("text")
|
|
.HasColumnName("error");
|
|
|
|
b.Property<DateTime>("OccurredOnUtc")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("occurred_on_utc");
|
|
|
|
b.Property<DateTime?>("ProcessedOnUtc")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("processed_on_utc");
|
|
|
|
b.Property<string>("Type")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("type");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("pk_inbox_messages");
|
|
|
|
b.ToTable("inbox_messages", "hello");
|
|
});
|
|
|
|
modelBuilder.Entity("Mccn.Common.Infrastructure.Inbox.InboxMessageConsumer", b =>
|
|
{
|
|
b.Property<Guid>("InboxMessageId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("inbox_message_id");
|
|
|
|
b.Property<string>("Name")
|
|
.HasColumnType("text")
|
|
.HasColumnName("name");
|
|
|
|
b.HasKey("InboxMessageId", "Name")
|
|
.HasName("pk_inbox_message_consumers");
|
|
|
|
b.ToTable("inbox_message_consumers", "hello");
|
|
});
|
|
|
|
modelBuilder.Entity("Mccn.Modules.Hello.Infrastructure.Database.Models.WelcomedUser", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("id");
|
|
|
|
b.Property<string>("Email")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("email");
|
|
|
|
b.Property<string>("FirstName")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("first_name");
|
|
|
|
b.Property<string>("LastName")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("last_name");
|
|
|
|
b.Property<Guid>("UserId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("user_id");
|
|
|
|
b.Property<DateTime>("WelcomedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("welcomed_at");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("pk_welcomed_users");
|
|
|
|
b.ToTable("welcomed_users", "hello");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|