//
using System;
using Infrastructure.Persistence;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
namespace Infrastructure.Migrations
{
[DbContext(typeof(CardDbContext))]
partial class CardDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "7.0.2");
modelBuilder.Entity("Domain.Entities.CardBdatum", b =>
{
b.Property("CardId")
.HasColumnType("INTEGER")
.HasColumnName("card_id");
b.Property("Bdata")
.HasColumnType("TEXT")
.HasColumnName("bdata");
b.Property("BdataSize")
.HasColumnType("INTEGER")
.HasColumnName("bdata_size");
b.HasKey("CardId");
b.ToTable("card_bdata", (string)null);
});
modelBuilder.Entity("Domain.Entities.CardDetail", b =>
{
b.Property("CardId")
.HasColumnType("INTEGER")
.HasColumnName("card_id");
b.Property("Pcol1")
.HasColumnType("INTEGER")
.HasColumnName("pcol1");
b.Property("Pcol2")
.HasColumnType("INTEGER")
.HasColumnName("pcol2");
b.Property("Pcol3")
.HasColumnType("INTEGER")
.HasColumnName("pcol3");
b.Property("Fcol1")
.HasColumnType("INTEGER")
.HasColumnName("fcol1");
b.Property("Fcol2")
.HasColumnType("INTEGER")
.HasColumnName("fcol2");
b.Property("Fcol3")
.HasColumnType("INTEGER")
.HasColumnName("fcol3");
b.Property("LastPlayTenpoId")
.HasColumnType("TEXT")
.HasColumnName("last_play_tenpo_id");
b.Property("LastPlayTime")
.HasColumnType("INTEGER")
.HasColumnName("last_play_time");
b.Property("ScoreBi1")
.HasColumnType("INTEGER")
.HasColumnName("score_bi1");
b.Property("ScoreI1")
.HasColumnType("INTEGER")
.HasColumnName("score_i1");
b.Property("ScoreUi1")
.HasColumnType("INTEGER")
.HasColumnName("score_ui1");
b.Property("ScoreUi2")
.HasColumnType("INTEGER")
.HasColumnName("score_ui2");
b.Property("ScoreUi3")
.HasColumnType("INTEGER")
.HasColumnName("score_ui3");
b.Property("ScoreUi4")
.HasColumnType("INTEGER")
.HasColumnName("score_ui4");
b.Property("ScoreUi5")
.HasColumnType("INTEGER")
.HasColumnName("score_ui5");
b.Property("ScoreUi6")
.HasColumnType("INTEGER")
.HasColumnName("score_ui6");
b.HasKey("CardId", "Pcol1", "Pcol2", "Pcol3");
b.ToTable("card_detail", (string)null);
});
modelBuilder.Entity("Domain.Entities.CardMain", b =>
{
b.Property("CardId")
.HasColumnType("INTEGER")
.HasColumnName("card_id");
b.Property("AchieveStatus")
.IsRequired()
.HasColumnType("TEXT")
.HasColumnName("achieve_status");
b.Property("Created")
.HasColumnType("TEXT")
.HasColumnName("created");
b.Property("Fcol1")
.HasColumnType("INTEGER")
.HasColumnName("fcol1");
b.Property("Fcol2")
.HasColumnType("INTEGER")
.HasColumnName("fcol2");
b.Property("Fcol3")
.HasColumnType("INTEGER")
.HasColumnName("fcol3");
b.Property("Modified")
.HasColumnType("TEXT")
.HasColumnName("modified");
b.Property("PlayerName")
.IsRequired()
.HasColumnType("TEXT")
.HasColumnName("player_name");
b.Property("ScoreI1")
.HasColumnType("INTEGER")
.HasColumnName("score_i1");
b.HasKey("CardId");
b.ToTable("card_main", (string)null);
});
modelBuilder.Entity("Domain.Entities.CardPlayCount", b =>
{
b.Property("CardId")
.HasColumnType("INTEGER")
.HasColumnName("card_id");
b.Property("LastPlayedTime")
.HasColumnType("INTEGER")
.HasColumnName("last_played_time");
b.Property("PlayCount")
.HasColumnType("INTEGER")
.HasColumnName("play_count");
b.HasKey("CardId");
b.ToTable("CardPlayCount", (string)null);
});
modelBuilder.Entity("Domain.Entities.GlobalScoreRank", b =>
{
b.Property("CardId")
.HasColumnType("INTEGER");
b.Property("Area")
.IsRequired()
.HasColumnType("TEXT");
b.Property("AreaId")
.HasColumnType("INTEGER");
b.Property("AvatarId")
.HasColumnType("INTEGER");
b.Property("Fcol1")
.HasColumnType("INTEGER");
b.Property("LastPlayTenpoId")
.HasColumnType("INTEGER");
b.Property("PlayerName")
.IsRequired()
.HasColumnType("TEXT");
b.Property("Pref")
.IsRequired()
.HasColumnType("TEXT");
b.Property("PrefId")
.HasColumnType("INTEGER");
b.Property("Rank")
.HasColumnType("INTEGER");
b.Property("TenpoName")
.IsRequired()
.HasColumnType("TEXT");
b.Property("Title")
.IsRequired()
.HasColumnType("TEXT");
b.Property("TitleId")
.HasColumnType("INTEGER");
b.Property("TotalScore")
.HasColumnType("INTEGER");
b.HasKey("CardId");
b.ToTable("GlobalScoreRank", (string)null);
});
modelBuilder.Entity("Domain.Entities.MonthlyScoreRank", b =>
{
b.Property("CardId")
.HasColumnType("INTEGER");
b.Property("Area")
.IsRequired()
.HasColumnType("TEXT");
b.Property("AreaId")
.HasColumnType("INTEGER");
b.Property("AvatarId")
.HasColumnType("INTEGER");
b.Property("Fcol1")
.HasColumnType("INTEGER");
b.Property("LastPlayTenpoId")
.HasColumnType("INTEGER");
b.Property("PlayerName")
.IsRequired()
.HasColumnType("TEXT");
b.Property("Pref")
.IsRequired()
.HasColumnType("TEXT");
b.Property("PrefId")
.HasColumnType("INTEGER");
b.Property("Rank")
.HasColumnType("INTEGER");
b.Property("TenpoName")
.IsRequired()
.HasColumnType("TEXT");
b.Property("Title")
.IsRequired()
.HasColumnType("TEXT");
b.Property("TitleId")
.HasColumnType("INTEGER");
b.Property("TotalScore")
.HasColumnType("INTEGER");
b.HasKey("CardId");
b.ToTable("MonthlyScoreRank", (string)null);
});
modelBuilder.Entity("Domain.Entities.OnlineMatch", b =>
{
b.Property("MatchId")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property("Guid")
.IsConcurrencyToken()
.HasColumnType("TEXT");
b.Property("IsOpen")
.HasColumnType("INTEGER");
b.HasKey("MatchId");
b.ToTable("OnlineMatches", (string)null);
});
modelBuilder.Entity("Domain.Entities.OnlineMatchEntry", b =>
{
b.Property("MatchId")
.HasColumnType("INTEGER");
b.Property("EntryId")
.HasColumnType("INTEGER");
b.Property("AvatarId")
.HasColumnType("INTEGER");
b.Property("CardId")
.HasColumnType("INTEGER");
b.Property("ClassId")
.HasColumnType("INTEGER");
b.Property("EventId")
.HasColumnType("INTEGER");
b.Property("GroupId")
.HasColumnType("INTEGER");
b.Property("MachineId")
.HasColumnType("INTEGER");
b.Property("MatchRemainingTime")
.HasColumnType("INTEGER");
b.Property("MatchTimeout")
.HasColumnType("INTEGER");
b.Property("MatchWaitTime")
.HasColumnType("INTEGER");
b.Property("MessageId")
.HasColumnType("INTEGER");
b.Property("PlayerName")
.IsRequired()
.HasColumnType("TEXT");
b.Property("Pref")
.IsRequired()
.HasColumnType("TEXT");
b.Property("PrefId")
.HasColumnType("INTEGER");
b.Property("StartTime")
.HasColumnType("TEXT");
b.Property("Status")
.HasColumnType("INTEGER");
b.Property("TenpoId")
.HasColumnType("INTEGER");
b.Property("TenpoName")
.IsRequired()
.HasColumnType("TEXT");
b.Property("TitleId")
.HasColumnType("INTEGER");
b.HasKey("MatchId", "EntryId");
b.ToTable("OnlineMatchEntries", (string)null);
});
modelBuilder.Entity("Domain.Entities.PlayNumRank", b =>
{
b.Property("MusicId")
.HasColumnType("INTEGER");
b.Property("Artist")
.IsRequired()
.HasColumnType("TEXT");
b.Property("PlayCount")
.HasColumnType("INTEGER");
b.Property("PrevRank")
.HasColumnType("INTEGER");
b.Property("PrevRank2")
.HasColumnType("INTEGER");
b.Property("Rank")
.HasColumnType("INTEGER");
b.Property("Rank2")
.HasColumnType("INTEGER");
b.Property("Title")
.IsRequired()
.HasColumnType("TEXT");
b.HasKey("MusicId");
b.ToTable("PlayNumRank", (string)null);
});
modelBuilder.Entity("Domain.Entities.ShopScoreRank", b =>
{
b.Property("CardId")
.HasColumnType("INTEGER");
b.Property("Area")
.IsRequired()
.HasColumnType("TEXT");
b.Property("AreaId")
.HasColumnType("INTEGER");
b.Property("AvatarId")
.HasColumnType("INTEGER");
b.Property("Fcol1")
.HasColumnType("INTEGER");
b.Property("LastPlayTenpoId")
.HasColumnType("INTEGER");
b.Property("PlayerName")
.IsRequired()
.HasColumnType("TEXT");
b.Property("Pref")
.IsRequired()
.HasColumnType("TEXT");
b.Property("PrefId")
.HasColumnType("INTEGER");
b.Property("Rank")
.HasColumnType("INTEGER");
b.Property("TenpoName")
.IsRequired()
.HasColumnType("TEXT");
b.Property("Title")
.IsRequired()
.HasColumnType("TEXT");
b.Property("TitleId")
.HasColumnType("INTEGER");
b.Property("TotalScore")
.HasColumnType("INTEGER");
b.HasKey("CardId");
b.ToTable("ShopScoreRank", (string)null);
});
modelBuilder.Entity("Domain.Entities.OnlineMatchEntry", b =>
{
b.HasOne("Domain.Entities.OnlineMatch", null)
.WithMany("Entries")
.HasForeignKey("MatchId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Domain.Entities.OnlineMatch", b =>
{
b.Navigation("Entries");
});
#pragma warning restore 612, 618
}
}
}