// <auto-generated />
using System;
using EARSystem.Infrastructure;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
namespace EARSystem.Infrastructure.Migrations
{
[DbContext(typeof(AppDbContext))]
[Migration("20261006091053_DemoSeedMarker")]
partial class DemoSeedMarker
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "10.0.12")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
modelBuilder.Entity("EARSystem.Core.Experience", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<int>("Comfort")
.HasColumnType("int");
b.Property<bool>("Contribute")
.HasColumnType("bit");
b.Property<long>("CreatedAt")
.HasColumnType("bigint");
b.Property<int>("Focus")
.HasColumnType("int");
b.Property<int>("Liveliness")
.HasColumnType("int");
b.Property<int?>("MoodAfter")
.HasColumnType("int");
b.Property<int?>("MoodBefore")
.HasColumnType("int");
b.Property<int>("Nature")
.HasColumnType("int");
b.Property<Guid>("PlaceId")
.HasColumnType("uniqueidentifier");
b.Property<int>("Quiet")
.HasColumnType("int");
b.Property<int>("Satisfaction")
.HasColumnType("int");
b.Property<int>("Social")
.HasColumnType("int");
b.Property<string>("Thoughts")
.IsRequired()
.HasMaxLength(5000)
.HasColumnType("nvarchar(max)");
b.Property<string>("UserId")
.IsRequired()
.HasColumnType("nvarchar(450)");
b.Property<Guid>("Version")
.IsConcurrencyToken()
.HasColumnType("uniqueidentifier");
b.Property<int>("VisitDay")
.HasColumnType("int");
b.Property<long>("VisitedAt")
.HasColumnType("bigint");
b.HasKey("Id");
b.HasIndex("PlaceId", "Contribute");
b.HasIndex("UserId", "VisitedAt");
b.HasIndex("UserId", "PlaceId", "VisitDay")
.IsUnique();
b.ToTable("Experiences");
});
modelBuilder.Entity("EARSystem.Core.Favorite", b =>
{
b.Property<string>("UserId")
.HasColumnType("nvarchar(450)");
b.Property<Guid>("PlaceId")
.HasColumnType("uniqueidentifier");
b.Property<long>("CreatedAt")
.HasColumnType("bigint");
b.HasKey("UserId", "PlaceId");
b.HasIndex("PlaceId");
b.ToTable("Favorites");
});
modelBuilder.Entity("EARSystem.Core.MoodEntry", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<long>("CreatedAt")
.HasColumnType("bigint");
b.Property<int>("Energy")
.HasColumnType("int");
b.Property<Guid?>("ExperienceId")
.HasColumnType("uniqueidentifier");
b.Property<int>("Mood")
.HasColumnType("int");
b.Property<long>("RecordedAt")
.HasColumnType("bigint");
b.Property<int>("Stress")
.HasColumnType("int");
b.Property<string>("TagsJson")
.IsRequired()
.HasMaxLength(1000)
.HasColumnType("nvarchar(1000)");
b.Property<string>("Thoughts")
.IsRequired()
.HasMaxLength(5000)
.HasColumnType("nvarchar(max)");
b.Property<string>("UserId")
.IsRequired()
.HasColumnType("nvarchar(450)");
b.Property<Guid>("Version")
.IsConcurrencyToken()
.HasColumnType("uniqueidentifier");
b.HasKey("Id");
b.HasIndex("UserId", "RecordedAt");
b.ToTable("Moods");
});
modelBuilder.Entity("EARSystem.Core.Place", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<string>("Address")
.IsRequired()
.HasMaxLength(300)
.HasColumnType("nvarchar(300)");
b.Property<string>("AuthorizedExternalId")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<int>("Category")
.HasColumnType("int");
b.Property<int?>("CloseHour")
.HasColumnType("int");
b.Property<string>("Description")
.IsRequired()
.HasMaxLength(1000)
.HasColumnType("nvarchar(1000)");
b.Property<double>("Latitude")
.HasColumnType("float");
b.Property<double>("Longitude")
.HasColumnType("float");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<int?>("OpenHour")
.HasColumnType("int");
b.Property<decimal?>("Price")
.HasPrecision(10, 2)
.HasColumnType("decimal(10,2)");
b.Property<double?>("Rating")
.HasColumnType("float");
b.Property<int>("Source")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("Source", "Category");
b.ToTable("Places");
});
modelBuilder.Entity("EARSystem.Core.PlaceAtmosphere", b =>
{
b.Property<Guid>("PlaceId")
.HasColumnType("uniqueidentifier");
b.Property<int>("BaselineCount")
.HasColumnType("int");
b.Property<double>("Comfort")
.HasColumnType("float");
b.Property<string>("Evidence")
.IsRequired()
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<double>("Focus")
.HasColumnType("float");
b.Property<double>("Liveliness")
.HasColumnType("float");
b.Property<double>("Nature")
.HasColumnType("float");
b.Property<double>("Quiet")
.HasColumnType("float");
b.Property<double>("Social")
.HasColumnType("float");
b.HasKey("PlaceId");
b.ToTable("Atmospheres");
});
modelBuilder.Entity("EARSystem.Core.RecommendationRecord", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<string>("AlgorithmVersion")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<long>("CreatedAt")
.HasColumnType("bigint");
b.Property<double>("DurationMs")
.HasColumnType("float");
b.Property<int>("Goal")
.HasColumnType("int");
b.Property<int>("Mode")
.HasColumnType("int");
b.Property<string>("ResultsJson")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property<string>("UserId")
.IsRequired()
.HasColumnType("nvarchar(450)");
b.HasKey("Id");
b.HasIndex("UserId", "CreatedAt");
b.ToTable("Recommendations");
});
modelBuilder.Entity("EARSystem.Core.RuleConfiguration", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<Guid>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasColumnType("uniqueidentifier");
b.Property<DateTimeOffset?>("DemoSeededAt")
.HasColumnType("datetimeoffset");
b.Property<string>("Version")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("WeightsJson")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
b.ToTable("Rules");
});
modelBuilder.Entity("EARSystem.Core.UserPreference", b =>
{
b.Property<string>("UserId")
.HasColumnType("nvarchar(450)");
b.Property<string>("BlockedCategoriesJson")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property<string>("BlockedPlacesJson")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property<decimal?>("Budget")
.HasPrecision(10, 2)
.HasColumnType("decimal(10,2)");
b.Property<string>("FavoriteCategoriesJson")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property<int>("RadiusMeters")
.HasColumnType("int");
b.HasKey("UserId");
b.ToTable("Preferences");
});
modelBuilder.Entity("EARSystem.Infrastructure.ApplicationUser", b =>
{
b.Property<string>("Id")
.HasColumnType("nvarchar(450)");
b.Property<int>("AccessFailedCount")
.HasColumnType("int");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasColumnType("nvarchar(max)");
b.Property<string>("DisplayName")
.IsRequired()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)");
b.Property<string>("Email")
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.Property<bool>("EmailConfirmed")
.HasColumnType("bit");
b.Property<bool>("IsDemo")
.HasColumnType("bit");
b.Property<bool>("LockoutEnabled")
.HasColumnType("bit");
b.Property<DateTimeOffset?>("LockoutEnd")
.HasColumnType("datetimeoffset");
b.Property<string>("NormalizedEmail")
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.Property<string>("NormalizedUserName")
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.Property<string>("PasswordHash")
.HasColumnType("nvarchar(max)");
b.Property<string>("PhoneNumber")
.HasColumnType("nvarchar(max)");
b.Property<bool>("PhoneNumberConfirmed")
.HasColumnType("bit");
b.Property<string>("SecurityStamp")
.HasColumnType("nvarchar(max)");
b.Property<bool>("TwoFactorEnabled")
.HasColumnType("bit");
b.Property<string>("UserName")
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.HasKey("Id");
b.HasIndex("NormalizedEmail")
.HasDatabaseName("EmailIndex");
b.HasIndex("NormalizedUserName")
.IsUnique()
.HasDatabaseName("UserNameIndex")
.HasFilter("[NormalizedUserName] IS NOT NULL");
b.ToTable("AspNetUsers", (string)null);
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
{
b.Property<string>("Id")
.HasColumnType("nvarchar(450)");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasColumnType("nvarchar(max)");
b.Property<string>("Name")
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.Property<string>("NormalizedName")
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.HasKey("Id");
b.HasIndex("NormalizedName")
.IsUnique()
.HasDatabaseName("RoleNameIndex")
.HasFilter("[NormalizedName] IS NOT NULL");
b.ToTable("AspNetRoles", (string)null);
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<string>("ClaimType")
.HasColumnType("nvarchar(max)");
b.Property<string>("ClaimValue")
.HasColumnType("nvarchar(max)");
b.Property<string>("RoleId")
.IsRequired()
.HasColumnType("nvarchar(450)");
b.HasKey("Id");
b.HasIndex("RoleId");
b.ToTable("AspNetRoleClaims", (string)null);
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<string>("ClaimType")
.HasColumnType("nvarchar(max)");
b.Property<string>("ClaimValue")
.HasColumnType("nvarchar(max)");
b.Property<string>("UserId")
.IsRequired()
.HasColumnType("nvarchar(450)");
b.HasKey("Id");
b.HasIndex("UserId");
b.ToTable("AspNetUserClaims", (string)null);
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
{
b.Property<string>("LoginProvider")
.HasColumnType("nvarchar(450)");
b.Property<string>("ProviderKey")
.HasColumnType("nvarchar(450)");
b.Property<string>("ProviderDisplayName")
.HasColumnType("nvarchar(max)");
b.Property<string>("UserId")
.IsRequired()
.HasColumnType("nvarchar(450)");
b.HasKey("LoginProvider", "ProviderKey");
b.HasIndex("UserId");
b.ToTable("AspNetUserLogins", (string)null);
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
{
b.Property<string>("UserId")
.HasColumnType("nvarchar(450)");
b.Property<string>("RoleId")
.HasColumnType("nvarchar(450)");
b.HasKey("UserId", "RoleId");
b.HasIndex("RoleId");
b.ToTable("AspNetUserRoles", (string)null);
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
{
b.Property<string>("UserId")
.HasColumnType("nvarchar(450)");
b.Property<string>("LoginProvider")
.HasColumnType("nvarchar(450)");
b.Property<string>("Name")
.HasColumnType("nvarchar(450)");
b.Property<string>("Value")
.HasColumnType("nvarchar(max)");
b.HasKey("UserId", "LoginProvider", "Name");
b.ToTable("AspNetUserTokens", (string)null);
});
modelBuilder.Entity("EARSystem.Core.Experience", b =>
{
b.HasOne("EARSystem.Core.Place", "Place")
.WithMany()
.HasForeignKey("PlaceId")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.HasOne("EARSystem.Infrastructure.ApplicationUser", null)
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Place");
});
modelBuilder.Entity("EARSystem.Core.Favorite", b =>
{
b.HasOne("EARSystem.Core.Place", "Place")
.WithMany()
.HasForeignKey("PlaceId")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.HasOne("EARSystem.Infrastructure.ApplicationUser", null)
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Place");
});
modelBuilder.Entity("EARSystem.Core.MoodEntry", b =>
{
b.HasOne("EARSystem.Infrastructure.ApplicationUser", null)
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("EARSystem.Core.PlaceAtmosphere", b =>
{
b.HasOne("EARSystem.Core.Place", null)
.WithOne("Atmosphere")
.HasForeignKey("EARSystem.Core.PlaceAtmosphere", "PlaceId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("EARSystem.Core.RecommendationRecord", b =>
{
b.HasOne("EARSystem.Infrastructure.ApplicationUser", null)
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("EARSystem.Core.UserPreference", b =>
{
b.HasOne("EARSystem.Infrastructure.ApplicationUser", null)
.WithOne()
.HasForeignKey("EARSystem.Core.UserPreference", "UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
{
b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
.WithMany()
.HasForeignKey("RoleId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
{
b.HasOne("EARSystem.Infrastructure.ApplicationUser", null)
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
{
b.HasOne("EARSystem.Infrastructure.ApplicationUser", null)
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
{
b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
.WithMany()
.HasForeignKey("RoleId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("EARSystem.Infrastructure.ApplicationUser", null)
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
{
b.HasOne("EARSystem.Infrastructure.ApplicationUser", null)
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("EARSystem.Core.Place", b =>
{
b.Navigation("Atmosphere");
});
#pragma warning restore 612, 618
}
}
}
// <auto-generated />
using System;
using EARSystem.Infrastructure;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
namespace EARSystem.Infrastructure.Migrations
{
[DbContext(typeof(AppDbContext))]
[Migration("20261006091053_DemoSeedMarker")]
partial class DemoSeedMarker
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "10.0.12")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
modelBuilder.Entity("EARSystem.Core.Experience", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<int>("Comfort")
.HasColumnType("int");
b.Property<bool>("Contribute")
.HasColumnType("bit");
b.Property<long>("CreatedAt")
.HasColumnType("bigint");
b.Property<int>("Focus")
.HasColumnType("int");
b.Property<int>("Liveliness")
.HasColumnType("int");
b.Property<int?>("MoodAfter")
.HasColumnType("int");
b.Property<int?>("MoodBefore")
.HasColumnType("int");
b.Property<int>("Nature")
.HasColumnType("int");
b.Property<Guid>("PlaceId")
.HasColumnType("uniqueidentifier");
b.Property<int>("Quiet")
.HasColumnType("int");
b.Property<int>("Satisfaction")
.HasColumnType("int");
b.Property<int>("Social")
.HasColumnType("int");
b.Property<string>("Thoughts")
.IsRequired()
.HasMaxLength(5000)
.HasColumnType("nvarchar(max)");
b.Property<string>("UserId")
.IsRequired()
.HasColumnType("nvarchar(450)");
b.Property<Guid>("Version")
.IsConcurrencyToken()
.HasColumnType("uniqueidentifier");
b.Property<int>("VisitDay")
.HasColumnType("int");
b.Property<long>("VisitedAt")
.HasColumnType("bigint");
b.HasKey("Id");
b.HasIndex("PlaceId", "Contribute");
b.HasIndex("UserId", "VisitedAt");
b.HasIndex("UserId", "PlaceId", "VisitDay")
.IsUnique();
b.ToTable("Experiences");
});
modelBuilder.Entity("EARSystem.Core.Favorite", b =>
{
b.Property<string>("UserId")
.HasColumnType("nvarchar(450)");
b.Property<Guid>("PlaceId")
.HasColumnType("uniqueidentifier");
b.Property<long>("CreatedAt")
.HasColumnType("bigint");
b.HasKey("UserId", "PlaceId");
b.HasIndex("PlaceId");
b.ToTable("Favorites");
});
modelBuilder.Entity("EARSystem.Core.MoodEntry", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<long>("CreatedAt")
.HasColumnType("bigint");
b.Property<int>("Energy")
.HasColumnType("int");
b.Property<Guid?>("ExperienceId")
.HasColumnType("uniqueidentifier");
b.Property<int>("Mood")
.HasColumnType("int");
b.Property<long>("RecordedAt")
.HasColumnType("bigint");
b.Property<int>("Stress")
.HasColumnType("int");
b.Property<string>("TagsJson")
.IsRequired()
.HasMaxLength(1000)
.HasColumnType("nvarchar(1000)");
b.Property<string>("Thoughts")
.IsRequired()
.HasMaxLength(5000)
.HasColumnType("nvarchar(max)");
b.Property<string>("UserId")
.IsRequired()
.HasColumnType("nvarchar(450)");
b.Property<Guid>("Version")
.IsConcurrencyToken()
.HasColumnType("uniqueidentifier");
b.HasKey("Id");
b.HasIndex("UserId", "RecordedAt");
b.ToTable("Moods");
});
modelBuilder.Entity("EARSystem.Core.Place", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<string>("Address")
.IsRequired()
.HasMaxLength(300)
.HasColumnType("nvarchar(300)");
b.Property<string>("AuthorizedExternalId")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<int>("Category")
.HasColumnType("int");
b.Property<int?>("CloseHour")
.HasColumnType("int");
b.Property<string>("Description")
.IsRequired()
.HasMaxLength(1000)
.HasColumnType("nvarchar(1000)");
b.Property<double>("Latitude")
.HasColumnType("float");
b.Property<double>("Longitude")
.HasColumnType("float");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<int?>("OpenHour")
.HasColumnType("int");
b.Property<decimal?>("Price")
.HasPrecision(10, 2)
.HasColumnType("decimal(10,2)");
b.Property<double?>("Rating")
.HasColumnType("float");
b.Property<int>("Source")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("Source", "Category");
b.ToTable("Places");
});
modelBuilder.Entity("EARSystem.Core.PlaceAtmosphere", b =>
{
b.Property<Guid>("PlaceId")
.HasColumnType("uniqueidentifier");
b.Property<int>("BaselineCount")
.HasColumnType("int");
b.Property<double>("Comfort")
.HasColumnType("float");
b.Property<string>("Evidence")
.IsRequired()
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<double>("Focus")
.HasColumnType("float");
b.Property<double>("Liveliness")
.HasColumnType("float");
b.Property<double>("Nature")
.HasColumnType("float");
b.Property<double>("Quiet")
.HasColumnType("float");
b.Property<double>("Social")
.HasColumnType("float");
b.HasKey("PlaceId");
b.ToTable("Atmospheres");
});
modelBuilder.Entity("EARSystem.Core.RecommendationRecord", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<string>("AlgorithmVersion")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<long>("CreatedAt")
.HasColumnType("bigint");
b.Property<double>("DurationMs")
.HasColumnType("float");
b.Property<int>("Goal")
.HasColumnType("int");
b.Property<int>("Mode")
.HasColumnType("int");
b.Property<string>("ResultsJson")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property<string>("UserId")
.IsRequired()
.HasColumnType("nvarchar(450)");
b.HasKey("Id");
b.HasIndex("UserId", "CreatedAt");
b.ToTable("Recommendations");
});
modelBuilder.Entity("EARSystem.Core.RuleConfiguration", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<Guid>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasColumnType("uniqueidentifier");
b.Property<DateTimeOffset?>("DemoSeededAt")
.HasColumnType("datetimeoffset");
b.Property<string>("Version")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("WeightsJson")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
b.ToTable("Rules");
});
modelBuilder.Entity("EARSystem.Core.UserPreference", b =>
{
b.Property<string>("UserId")
.HasColumnType("nvarchar(450)");
b.Property<string>("BlockedCategoriesJson")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property<string>("BlockedPlacesJson")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property<decimal?>("Budget")
.HasPrecision(10, 2)
.HasColumnType("decimal(10,2)");
b.Property<string>("FavoriteCategoriesJson")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property<int>("RadiusMeters")
.HasColumnType("int");
b.HasKey("UserId");
b.ToTable("Preferences");
});
modelBuilder.Entity("EARSystem.Infrastructure.ApplicationUser", b =>
{
b.Property<string>("Id")
.HasColumnType("nvarchar(450)");
b.Property<int>("AccessFailedCount")
.HasColumnType("int");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasColumnType("nvarchar(max)");
b.Property<string>("DisplayName")
.IsRequired()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)");
b.Property<string>("Email")
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.Property<bool>("EmailConfirmed")
.HasColumnType("bit");
b.Property<bool>("IsDemo")
.HasColumnType("bit");
b.Property<bool>("LockoutEnabled")
.HasColumnType("bit");
b.Property<DateTimeOffset?>("LockoutEnd")
.HasColumnType("datetimeoffset");
b.Property<string>("NormalizedEmail")
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.Property<string>("NormalizedUserName")
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.Property<string>("PasswordHash")
.HasColumnType("nvarchar(max)");
b.Property<string>("PhoneNumber")
.HasColumnType("nvarchar(max)");
b.Property<bool>("PhoneNumberConfirmed")
.HasColumnType("bit");
b.Property<string>("SecurityStamp")
.HasColumnType("nvarchar(max)");
b.Property<bool>("TwoFactorEnabled")
.HasColumnType("bit");
b.Property<string>("UserName")
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.HasKey("Id");
b.HasIndex("NormalizedEmail")
.HasDatabaseName("EmailIndex");
b.HasIndex("NormalizedUserName")
.IsUnique()
.HasDatabaseName("UserNameIndex")
.HasFilter("[NormalizedUserName] IS NOT NULL");
b.ToTable("AspNetUsers", (string)null);
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
{
b.Property<string>("Id")
.HasColumnType("nvarchar(450)");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasColumnType("nvarchar(max)");
b.Property<string>("Name")
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.Property<string>("NormalizedName")
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.HasKey("Id");
b.HasIndex("NormalizedName")
.IsUnique()
.HasDatabaseName("RoleNameIndex")
.HasFilter("[NormalizedName] IS NOT NULL");
b.ToTable("AspNetRoles", (string)null);
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<string>("ClaimType")
.HasColumnType("nvarchar(max)");
b.Property<string>("ClaimValue")
.HasColumnType("nvarchar(max)");
b.Property<string>("RoleId")
.IsRequired()
.HasColumnType("nvarchar(450)");
b.HasKey("Id");
b.HasIndex("RoleId");
b.ToTable("AspNetRoleClaims", (string)null);
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<string>("ClaimType")
.HasColumnType("nvarchar(max)");
b.Property<string>("ClaimValue")
.HasColumnType("nvarchar(max)");
b.Property<string>("UserId")
.IsRequired()
.HasColumnType("nvarchar(450)");
b.HasKey("Id");
b.HasIndex("UserId");
b.ToTable("AspNetUserClaims", (string)null);
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
{
b.Property<string>("LoginProvider")
.HasColumnType("nvarchar(450)");
b.Property<string>("ProviderKey")
.HasColumnType("nvarchar(450)");
b.Property<string>("ProviderDisplayName")
.HasColumnType("nvarchar(max)");
b.Property<string>("UserId")
.IsRequired()
.HasColumnType("nvarchar(450)");
b.HasKey("LoginProvider", "ProviderKey");
b.HasIndex("UserId");
b.ToTable("AspNetUserLogins", (string)null);
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
{
b.Property<string>("UserId")
.HasColumnType("nvarchar(450)");
b.Property<string>("RoleId")
.HasColumnType("nvarchar(450)");
b.HasKey("UserId", "RoleId");
b.HasIndex("RoleId");
b.ToTable("AspNetUserRoles", (string)null);
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
{
b.Property<string>("UserId")
.HasColumnType("nvarchar(450)");
b.Property<string>("LoginProvider")
.HasColumnType("nvarchar(450)");
b.Property<string>("Name")
.HasColumnType("nvarchar(450)");
b.Property<string>("Value")
.HasColumnType("nvarchar(max)");
b.HasKey("UserId", "LoginProvider", "Name");
b.ToTable("AspNetUserTokens", (string)null);
});
modelBuilder.Entity("EARSystem.Core.Experience", b =>
{
b.HasOne("EARSystem.Core.Place", "Place")
.WithMany()
.HasForeignKey("PlaceId")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.HasOne("EARSystem.Infrastructure.ApplicationUser", null)
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Place");
});
modelBuilder.Entity("EARSystem.Core.Favorite", b =>
{
b.HasOne("EARSystem.Core.Place", "Place")
.WithMany()
.HasForeignKey("PlaceId")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.HasOne("EARSystem.Infrastructure.ApplicationUser", null)
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Place");
});
modelBuilder.Entity("EARSystem.Core.MoodEntry", b =>
{
b.HasOne("EARSystem.Infrastructure.ApplicationUser", null)
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("EARSystem.Core.PlaceAtmosphere", b =>
{
b.HasOne("EARSystem.Core.Place", null)
.WithOne("Atmosphere")
.HasForeignKey("EARSystem.Core.PlaceAtmosphere", "PlaceId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("EARSystem.Core.RecommendationRecord", b =>
{
b.HasOne("EARSystem.Infrastructure.ApplicationUser", null)
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("EARSystem.Core.UserPreference", b =>
{
b.HasOne("EARSystem.Infrastructure.ApplicationUser", null)
.WithOne()
.HasForeignKey("EARSystem.Core.UserPreference", "UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
{
b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
.WithMany()
.HasForeignKey("RoleId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
{
b.HasOne("EARSystem.Infrastructure.ApplicationUser", null)
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
{
b.HasOne("EARSystem.Infrastructure.ApplicationUser", null)
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
{
b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
.WithMany()
.HasForeignKey("RoleId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("EARSystem.Infrastructure.ApplicationUser", null)
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
{
b.HasOne("EARSystem.Infrastructure.ApplicationUser", null)
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("EARSystem.Core.Place", b =>
{
b.Navigation("Atmosphere");
});
#pragma warning restore 612, 618
}
}
}