// using System; using AGSS.Models; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace AGSS.Migrations { [DbContext(typeof(DBContext))] [Migration("20250705081221_newuser")] partial class newuser { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "9.0.6") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("AGSS.Models.Entities.UserModel", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("AuthId") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("Birthday") .HasMaxLength(20) .HasColumnType("character varying(20)"); b.Property("Config") .HasMaxLength(200) .HasColumnType("character varying(200)"); b.Property("Description") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("JobCode") .HasMaxLength(10) .HasColumnType("character varying(10)"); b.Property("JobName") .HasMaxLength(10) .HasColumnType("character varying(10)"); b.Property("Sex") .HasMaxLength(20) .HasColumnType("character varying(20)"); b.HasKey("Id"); b.ToTable("UserModels"); }); #pragma warning restore 612, 618 } } }