Cucumber/Cloud/Migrations/20241027220558_CreateUsersTable.Designer.cs

54 lines
1.3 KiB
C#
Raw Normal View History

2024-10-28 02:09:55 +04:00
// <auto-generated />
using Cloud;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
#nullable disable
namespace Cloud.Migrations
{
2024-10-29 00:38:46 +04:00
[DbContext(typeof(ApplicationContext))]
[Migration("20241027220558_CreateUsersTable")]
partial class CreateUsersTable
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
2024-10-28 02:09:55 +04:00
#pragma warning disable 612, 618
2024-10-29 00:38:46 +04:00
modelBuilder
.HasAnnotation("ProductVersion", "6.0.14")
.HasAnnotation("Relational:MaxIdentifierLength", 63);
2024-10-28 02:09:55 +04:00
2024-10-29 00:38:46 +04:00
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
2024-10-28 02:09:55 +04:00
2024-10-29 00:38:46 +04:00
modelBuilder.Entity("Cloud.Models.User", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
2024-10-28 02:09:55 +04:00
2024-10-29 00:38:46 +04:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-10-28 02:09:55 +04:00
2024-10-29 00:38:46 +04:00
b.Property<string>("Email")
.IsRequired()
.HasColumnType("text");
2024-10-28 02:09:55 +04:00
2024-10-29 00:38:46 +04:00
b.Property<string>("Name")
.IsRequired()
.HasColumnType("text");
2024-10-28 02:09:55 +04:00
2024-10-29 00:38:46 +04:00
b.Property<string>("Password")
.IsRequired()
.HasColumnType("text");
2024-10-28 02:09:55 +04:00
2024-10-29 00:38:46 +04:00
b.HasKey("Id");
2024-10-28 02:09:55 +04:00
2024-10-29 00:38:46 +04:00
b.ToTable("Users");
});
2024-10-28 02:09:55 +04:00
#pragma warning restore 612, 618
2024-10-29 00:38:46 +04:00
}
}
2024-10-28 02:09:55 +04:00
}