Weiferl.Database.EF/Weiferl.Databas.EF/Migrations/20230723183039_init.Designer.cs

93 lines
3.0 KiB
C#
Raw Normal View History

2023-07-09 11:15:39 +02:00
// <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
2023-07-25 20:20:29 +02:00
using Microsoft.EntityFrameworkCore.Metadata;
2023-07-09 11:15:39 +02:00
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Weiferl.Databas.EF;
#nullable disable
namespace Weiferl.Databas.EF.Migrations
{
[DbContext(typeof(WeiferlDb))]
2023-07-25 20:20:29 +02:00
[Migration("20230723183039_init")]
2023-07-09 11:51:47 +02:00
partial class init
2023-07-09 11:15:39 +02:00
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "7.0.8")
2023-07-25 20:20:29 +02:00
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
2023-07-09 11:15:39 +02:00
modelBuilder.Entity("Weiferl.Databas.EF.Models.Countrie", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
2023-07-25 20:20:29 +02:00
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
2023-07-09 11:15:39 +02:00
b.Property<string>("Name")
.IsRequired()
2023-07-25 20:20:29 +02:00
.HasColumnType("nvarchar(max)");
2023-07-09 11:15:39 +02:00
b.Property<string>("Slug")
.IsRequired()
2023-07-25 20:20:29 +02:00
.HasColumnType("nvarchar(max)");
2023-07-09 11:15:39 +02:00
b.HasKey("Id");
b.ToTable("Countries");
});
modelBuilder.Entity("Weiferl.Databas.EF.Models.User", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
2023-07-25 20:20:29 +02:00
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
2023-07-09 11:15:39 +02:00
b.Property<DateTime?>("Birthday")
2023-07-25 20:20:29 +02:00
.HasColumnType("datetime2");
2023-07-09 11:15:39 +02:00
b.Property<string>("CountrySlug")
.IsRequired()
2023-07-25 20:20:29 +02:00
.HasColumnType("nvarchar(max)");
2023-07-09 11:15:39 +02:00
b.Property<string>("Email")
.IsRequired()
2023-07-25 20:20:29 +02:00
.HasColumnType("nvarchar(max)");
2023-07-09 11:15:39 +02:00
b.Property<string>("Firstname")
.IsRequired()
2023-07-25 20:20:29 +02:00
.HasColumnType("nvarchar(max)");
2023-07-09 11:15:39 +02:00
b.Property<bool>("IsDeleted")
2023-07-25 20:20:29 +02:00
.HasColumnType("bit");
2023-07-09 11:15:39 +02:00
b.Property<string>("Lastname")
.IsRequired()
2023-07-25 20:20:29 +02:00
.HasColumnType("nvarchar(max)");
2023-07-09 11:15:39 +02:00
2023-07-09 11:51:47 +02:00
b.Property<DateTime?>("RegisterDate")
2023-07-25 20:20:29 +02:00
.HasColumnType("datetime2");
2023-07-09 11:51:47 +02:00
2023-07-09 11:15:39 +02:00
b.Property<Guid>("UserId")
2023-07-25 20:20:29 +02:00
.HasColumnType("uniqueidentifier");
2023-07-09 11:15:39 +02:00
b.HasKey("Id");
b.ToTable("Users");
});
#pragma warning restore 612, 618
}
}
}