76 lines
2.3 KiB
C#
76 lines
2.3 KiB
C#
|
|
// <auto-generated />
|
|||
|
|
using System;
|
|||
|
|
using Microsoft.EntityFrameworkCore;
|
|||
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|||
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|||
|
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|||
|
|
using Vegasco.WebApi.Persistence;
|
|||
|
|
|
|||
|
|
#nullable disable
|
|||
|
|
|
|||
|
|
namespace Vegasco.WebApi.Persistence.Migrations
|
|||
|
|
{
|
|||
|
|
[DbContext(typeof(ApplicationDbContext))]
|
|||
|
|
partial class ApplicationDbContextModelSnapshot : ModelSnapshot
|
|||
|
|
{
|
|||
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
|
|
{
|
|||
|
|
#pragma warning disable 612, 618
|
|||
|
|
modelBuilder
|
|||
|
|
.HasAnnotation("ProductVersion", "8.0.7")
|
|||
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
|||
|
|
|
|||
|
|
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Vegasco.WebApi.Cars.Car", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<string>("Name")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("character varying(50)");
|
|||
|
|
|
|||
|
|
b.Property<string>("UserId")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasColumnType("text");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("UserId");
|
|||
|
|
|
|||
|
|
b.ToTable("Cars");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Vegasco.WebApi.Users.User", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<string>("Id")
|
|||
|
|
.HasColumnType("text");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.ToTable("Users");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Vegasco.WebApi.Cars.Car", b =>
|
|||
|
|
{
|
|||
|
|
b.HasOne("Vegasco.WebApi.Users.User", "User")
|
|||
|
|
.WithMany("Cars")
|
|||
|
|
.HasForeignKey("UserId")
|
|||
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|||
|
|
.IsRequired();
|
|||
|
|
|
|||
|
|
b.Navigation("User");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Vegasco.WebApi.Users.User", b =>
|
|||
|
|
{
|
|||
|
|
b.Navigation("Cars");
|
|||
|
|
});
|
|||
|
|
#pragma warning restore 612, 618
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|