// using System; using Fengling.Platform.Infrastructure; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace Fengling.Platform.Infrastructure.Migrations { [DbContext(typeof(PlatformDbContext))] [Migration("20260218145512_Initial")] partial class Initial { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "10.0.0") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("Fengling.Platform.Domain.AggregatesModel.TenantAggregate.Tenant", b => { b.Property("Id") .HasColumnType("bigint"); b.Property("ContactEmail") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("ContactName") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("ContactPhone") .HasMaxLength(20) .HasColumnType("character varying(20)"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("Deleted") .HasColumnType("boolean"); b.Property("Description") .HasMaxLength(500) .HasColumnType("character varying(500)"); b.Property("ExpiresAt") .HasColumnType("timestamp with time zone"); b.Property("MaxUsers") .HasColumnType("integer"); b.Property("Name") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("RowVersion") .IsConcurrencyToken() .HasColumnType("integer"); b.Property("Status") .HasColumnType("integer"); b.Property("TenantCode") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("UpdatedAt") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.HasIndex("Status"); b.HasIndex("TenantCode") .IsUnique(); b.ToTable("Platform_Tenants", (string)null); }); #pragma warning restore 612, 618 } } }