/
20180302172806_Initial.Designer.cs
91 lines (69 loc) · 2.85 KB
/
20180302172806_Initial.Designer.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
// <auto-generated />
using LeaderboardService.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage;
using Microsoft.EntityFrameworkCore.Storage.Internal;
using System;
namespace LeaderboardService.Migrations
{
[DbContext(typeof(LeaderboardContext))]
[Migration("20180302172806_Initial")]
partial class Initial
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "2.0.1-rtm-125")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
modelBuilder.Entity("LeaderboardService.Models.Game", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<string>("Name");
b.HasKey("Id");
b.ToTable("Games");
});
modelBuilder.Entity("LeaderboardService.Models.Leaderboard", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<string>("Description");
b.Property<int>("GameId");
b.Property<string>("Name");
b.HasKey("Id");
b.HasIndex("GameId");
b.ToTable("Leaderboards");
});
modelBuilder.Entity("LeaderboardService.Models.LeaderboardEntry", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<string>("DeviceID");
b.Property<int?>("LeaderboardId");
b.Property<string>("PlayerName");
b.Property<double>("ScoreValue");
b.HasKey("Id");
b.HasIndex("LeaderboardId");
b.ToTable("LeaderboardEntries");
});
modelBuilder.Entity("LeaderboardService.Models.Leaderboard", b =>
{
b.HasOne("LeaderboardService.Models.Game", "Game")
.WithMany("Leaderboards")
.HasForeignKey("GameId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("LeaderboardService.Models.LeaderboardEntry", b =>
{
b.HasOne("LeaderboardService.Models.Leaderboard")
.WithMany("Entries")
.HasForeignKey("LeaderboardId");
});
#pragma warning restore 612, 618
}
}
}