// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using RazorPagesMovie.Data; #nullable disable namespace RazorPagesMovie.Migrations { [DbContext(typeof(RazorPagesMovieContext))] [Migration("20260819120324_ChangeAdminUserAndContactMessageIdToGuid")] partial class ChangeAdminUserAndContactMessageIdToGuid { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "8.0.28") .HasAnnotation("Relational:MaxIdentifierLength", 128); SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); modelBuilder.Entity("RazorPagesMovie.Models.AdminUser", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("PasswordHash") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("Username") .IsRequired() .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.HasKey("Id"); b.ToTable("AdminUser"); }); modelBuilder.Entity("RazorPagesMovie.Models.ContactMessage", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("Email") .IsRequired() .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("Message") .IsRequired() .HasMaxLength(5000) .HasColumnType("nvarchar(max)"); b.Property("Name") .IsRequired() .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("NotificationSent") .HasColumnType("bit"); b.Property("Phone") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("SentAt") .HasColumnType("datetime2"); b.Property("Subject") .HasMaxLength(150) .HasColumnType("nvarchar(150)"); b.HasKey("Id"); b.ToTable("ContactMessage"); }); modelBuilder.Entity("RazorPagesMovie.Models.Movie", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); b.Property("Genre") .IsRequired() .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("Price") .HasColumnType("decimal(18, 2)"); b.Property("Rating") .IsRequired() .HasMaxLength(5) .HasColumnType("nvarchar(5)"); b.Property("ReleaseDate") .HasColumnType("datetime2"); b.Property("Title") .IsRequired() .HasMaxLength(60) .HasColumnType("nvarchar(60)"); b.HasKey("Id"); b.ToTable("Movie"); }); #pragma warning restore 612, 618 } } }