// using System; using DeluxeNET.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; #nullable disable namespace DeluxeNET.Migrations { [DbContext(typeof(AppDbContext))] [Migration("20260419225030_accountsAdd")] partial class accountsAdd { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "9.0.11") .HasAnnotation("Relational:MaxIdentifierLength", 64); MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder); modelBuilder.Entity("DeluxeNET.Data.CachedLogin", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint") .HasAnnotation("Relational:JsonPropertyName", "Id"); MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("Id")); b.Property("accountId") .HasColumnType("bigint") .HasAnnotation("Relational:JsonPropertyName", "accountId"); b.Property("lastLoginTime") .HasColumnType("datetime(6)") .HasAnnotation("Relational:JsonPropertyName", "lastLoginTime"); b.Property("platform") .HasColumnType("int") .HasAnnotation("Relational:JsonPropertyName", "platform"); b.Property("platformId") .IsRequired() .HasColumnType("longtext") .HasAnnotation("Relational:JsonPropertyName", "platformId"); b.Property("requirePassword") .HasColumnType("tinyint(1)") .HasAnnotation("Relational:JsonPropertyName", "requirePassword"); b.HasKey("Id"); b.ToTable("CachedLogins"); }); modelBuilder.Entity("DeluxeNET.Data.account", b => { b.Property("accountId") .ValueGeneratedOnAdd() .HasColumnType("bigint") .HasAnnotation("Relational:JsonPropertyName", "accountId"); MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("accountId")); b.Property("bannerImage") .IsRequired() .HasColumnType("longtext") .HasAnnotation("Relational:JsonPropertyName", "bannerImage"); b.Property("createdAt") .HasColumnType("datetime(6)") .HasAnnotation("Relational:JsonPropertyName", "createdAt"); b.Property("displayName") .IsRequired() .HasColumnType("longtext") .HasAnnotation("Relational:JsonPropertyName", "displayName"); b.Property("identityFlags") .HasColumnType("int") .HasAnnotation("Relational:JsonPropertyName", "identityFlags"); b.Property("isJunior") .HasColumnType("tinyint(1)") .HasAnnotation("Relational:JsonPropertyName", "isJunior"); b.Property("isMetaPlatformBlocked") .HasColumnType("tinyint(1)") .HasAnnotation("Relational:JsonPropertyName", "isMetaPlatformBlocked"); b.Property("personalPronouns") .HasColumnType("int") .HasAnnotation("Relational:JsonPropertyName", "personalPronouns"); b.Property("platforms") .HasColumnType("int") .HasAnnotation("Relational:JsonPropertyName", "platforms"); b.Property("profileImage") .IsRequired() .HasColumnType("longtext") .HasAnnotation("Relational:JsonPropertyName", "profileImage"); b.Property("username") .IsRequired() .HasColumnType("longtext") .HasAnnotation("Relational:JsonPropertyName", "username"); b.HasKey("accountId"); b.ToTable("Accounts"); }); #pragma warning restore 612, 618 } } }