67 lines
2.2 KiB
C#
67 lines
2.2 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|
using khmereid_backend.Data;
|
|
|
|
#nullable disable
|
|
|
|
namespace khmereid_backend.Migrations
|
|
{
|
|
[DbContext(typeof(AppDbContext))]
|
|
partial class AppDbContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "9.0.10")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
|
|
|
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
|
|
|
modelBuilder.Entity("khmereid_backend.Models.User", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("id");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("created_at");
|
|
|
|
b.Property<Guid>("IdentityId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("identity_id");
|
|
|
|
b.Property<string>("NationalId")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("national_id");
|
|
|
|
b.Property<string>("Phone")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("phone");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("pk_users");
|
|
|
|
b.HasIndex("NationalId")
|
|
.IsUnique()
|
|
.HasDatabaseName("ix_users_national_id");
|
|
|
|
b.HasIndex("Phone")
|
|
.IsUnique()
|
|
.HasDatabaseName("ix_users_phone");
|
|
|
|
b.ToTable("users", (string)null);
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|