// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Moonlight.ApiServer.Database; #nullable disable namespace Moonlight.ApiServer.Database.Migrations { [DbContext(typeof(CoreDataContext))] partial class CoreDataContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasDefaultSchema("Core") .HasAnnotation("ProductVersion", "8.0.8") .HasAnnotation("Relational:MaxIdentifierLength", 64); MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder); modelBuilder.Entity("Moonlight.ApiServer.Database.Entities.ApiKey", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("Id")); b.Property("Description") .IsRequired() .HasColumnType("longtext"); b.Property("ExpiresAt") .HasColumnType("datetime(6)"); b.Property("PermissionsJson") .IsRequired() .HasColumnType("longtext"); b.Property("Secret") .IsRequired() .HasColumnType("longtext"); b.HasKey("Id"); b.ToTable("ApiKeys", "Core"); }); modelBuilder.Entity("Moonlight.ApiServer.Database.Entities.User", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("Id")); b.Property("Email") .IsRequired() .HasColumnType("longtext"); b.Property("Password") .IsRequired() .HasColumnType("longtext"); b.Property("PermissionsJson") .IsRequired() .HasColumnType("longtext"); b.Property("TokenValidTimestamp") .HasColumnType("datetime(6)"); b.Property("Username") .IsRequired() .HasColumnType("longtext"); b.HasKey("Id"); b.ToTable("Users", "Core"); }); #pragma warning restore 612, 618 } } }