TirsvadCLI Portfolio Library
Loading...
Searching...
No Matches
ApplicationDbContextModelSnapshot.cs
1// <auto-generated />
2using System;
3using Microsoft.EntityFrameworkCore;
4using Microsoft.EntityFrameworkCore.Infrastructure;
5using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
6using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
8
9#nullable disable
10
12{
13 [DbContext(typeof(ApplicationDbContext))]
14 partial class ApplicationDbContextModelSnapshot : ModelSnapshot
15 {
16 protected override void BuildModel(ModelBuilder modelBuilder)
17 {
18#pragma warning disable 612, 618
19 modelBuilder
20 .HasAnnotation("ProductVersion", "10.0.2")
21 .HasAnnotation("Relational:MaxIdentifierLength", 63);
22
23 NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
24
25 modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole<System.Guid>", b =>
26 {
27 b.Property<Guid>("Id")
28 .ValueGeneratedOnAdd()
29 .HasColumnType("uuid");
30
31 b.Property<string>("ConcurrencyStamp")
32 .IsConcurrencyToken()
33 .HasColumnType("text");
34
35 b.Property<string>("Name")
36 .HasMaxLength(256)
37 .HasColumnType("character varying(256)");
38
39 b.Property<string>("NormalizedName")
40 .HasMaxLength(256)
41 .HasColumnType("character varying(256)");
42
43 b.HasKey("Id");
44
45 b.HasIndex("NormalizedName")
46 .IsUnique()
47 .HasDatabaseName("RoleNameIndex");
48
49 b.ToTable("AspNetRoles", (string)null);
50 });
51
52 modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<System.Guid>", b =>
53 {
54 b.Property<int>("Id")
55 .ValueGeneratedOnAdd()
56 .HasColumnType("integer");
57
58 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
59
60 b.Property<string>("ClaimType")
61 .HasColumnType("text");
62
63 b.Property<string>("ClaimValue")
64 .HasColumnType("text");
65
66 b.Property<Guid>("RoleId")
67 .HasColumnType("uuid");
68
69 b.HasKey("Id");
70
71 b.HasIndex("RoleId");
72
73 b.ToTable("AspNetRoleClaims", (string)null);
74 });
75
76 modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<System.Guid>", b =>
77 {
78 b.Property<int>("Id")
79 .ValueGeneratedOnAdd()
80 .HasColumnType("integer");
81
82 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
83
84 b.Property<string>("ClaimType")
85 .HasColumnType("text");
86
87 b.Property<string>("ClaimValue")
88 .HasColumnType("text");
89
90 b.Property<Guid>("UserId")
91 .HasColumnType("uuid");
92
93 b.HasKey("Id");
94
95 b.HasIndex("UserId");
96
97 b.ToTable("AspNetUserClaims", (string)null);
98 });
99
100 modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<System.Guid>", b =>
101 {
102 b.Property<string>("LoginProvider")
103 .HasColumnType("text");
104
105 b.Property<string>("ProviderKey")
106 .HasColumnType("text");
107
108 b.Property<string>("ProviderDisplayName")
109 .HasColumnType("text");
110
111 b.Property<Guid>("UserId")
112 .HasColumnType("uuid");
113
114 b.HasKey("LoginProvider", "ProviderKey");
115
116 b.HasIndex("UserId");
117
118 b.ToTable("AspNetUserLogins", (string)null);
119 });
120
121 modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<System.Guid>", b =>
122 {
123 b.Property<Guid>("UserId")
124 .HasColumnType("uuid");
125
126 b.Property<Guid>("RoleId")
127 .HasColumnType("uuid");
128
129 b.HasKey("UserId", "RoleId");
130
131 b.HasIndex("RoleId");
132
133 b.ToTable("AspNetUserRoles", (string)null);
134 });
135
136 modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<System.Guid>", b =>
137 {
138 b.Property<Guid>("UserId")
139 .HasColumnType("uuid");
140
141 b.Property<string>("LoginProvider")
142 .HasColumnType("text");
143
144 b.Property<string>("Name")
145 .HasColumnType("text");
146
147 b.Property<string>("Value")
148 .HasColumnType("text");
149
150 b.HasKey("UserId", "LoginProvider", "Name");
151
152 b.ToTable("AspNetUserTokens", (string)null);
153 });
154
155 modelBuilder.Entity("TirsvadCLI.Portfolio.Domain.Entities.ApplicationUser", b =>
156 {
157 b.Property<Guid>("Id")
158 .ValueGeneratedOnAdd()
159 .HasColumnType("uuid");
160
161 b.Property<int>("AccessFailedCount")
162 .HasColumnType("integer");
163
164 b.Property<string>("ConcurrencyStamp")
165 .IsConcurrencyToken()
166 .HasColumnType("text");
167
168 b.Property<string>("Email")
169 .HasMaxLength(256)
170 .HasColumnType("character varying(256)");
171
172 b.Property<bool>("EmailConfirmed")
173 .HasColumnType("boolean");
174
175 b.Property<bool>("LockoutEnabled")
176 .HasColumnType("boolean");
177
178 b.Property<DateTimeOffset?>("LockoutEnd")
179 .HasColumnType("timestamp with time zone");
180
181 b.Property<string>("NormalizedEmail")
182 .HasMaxLength(256)
183 .HasColumnType("character varying(256)");
184
185 b.Property<string>("NormalizedUserName")
186 .HasMaxLength(256)
187 .HasColumnType("character varying(256)");
188
189 b.Property<string>("PasswordHash")
190 .HasColumnType("text");
191
192 b.Property<string>("PhoneNumber")
193 .HasColumnType("text");
194
195 b.Property<bool>("PhoneNumberConfirmed")
196 .HasColumnType("boolean");
197
198 b.Property<string>("SecurityStamp")
199 .HasColumnType("text");
200
201 b.Property<bool>("TwoFactorEnabled")
202 .HasColumnType("boolean");
203
204 b.Property<string>("UserName")
205 .HasMaxLength(256)
206 .HasColumnType("character varying(256)");
207
208 b.HasKey("Id");
209
210 b.HasIndex("NormalizedEmail")
211 .HasDatabaseName("EmailIndex");
212
213 b.HasIndex("NormalizedUserName")
214 .IsUnique()
215 .HasDatabaseName("UserNameIndex");
216
217 b.ToTable("AspNetUsers", (string)null);
218
219 b.HasData(
220 new
221 {
222 Id = new Guid("11111111-1111-1111-1111-111111111111"),
223 AccessFailedCount = 0,
224 ConcurrencyStamp = "11111111-1111-1111-1111-111111111113",
225 Email = "testuser@example.com",
226 EmailConfirmed = true,
227 LockoutEnabled = false,
228 NormalizedEmail = "TESTUSER@EXAMPLE.COM",
229 NormalizedUserName = "TESTUSER",
230 PasswordHash = "AQAAAAEAACcQAAAAEJQwQwQwQwQwQwQwQwQwQwQwQwQwQwQwQwQwQwQwQwQwQwQwQwQwQwQwQwQwQwQwQw==",
231 PhoneNumberConfirmed = false,
232 SecurityStamp = "11111111-1111-1111-1111-111111111112",
233 TwoFactorEnabled = false,
234 UserName = "testuser"
235 });
236 });
237
238 modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<System.Guid>", b =>
239 {
240 b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole<System.Guid>", null)
241 .WithMany()
242 .HasForeignKey("RoleId")
243 .OnDelete(DeleteBehavior.Cascade)
244 .IsRequired();
245 });
246
247 modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<System.Guid>", b =>
248 {
249 b.HasOne("TirsvadCLI.Portfolio.Domain.Entities.ApplicationUser", null)
250 .WithMany()
251 .HasForeignKey("UserId")
252 .OnDelete(DeleteBehavior.Cascade)
253 .IsRequired();
254 });
255
256 modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<System.Guid>", b =>
257 {
258 b.HasOne("TirsvadCLI.Portfolio.Domain.Entities.ApplicationUser", null)
259 .WithMany()
260 .HasForeignKey("UserId")
261 .OnDelete(DeleteBehavior.Cascade)
262 .IsRequired();
263 });
264
265 modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<System.Guid>", b =>
266 {
267 b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole<System.Guid>", null)
268 .WithMany()
269 .HasForeignKey("RoleId")
270 .OnDelete(DeleteBehavior.Cascade)
271 .IsRequired();
272
273 b.HasOne("TirsvadCLI.Portfolio.Domain.Entities.ApplicationUser", null)
274 .WithMany()
275 .HasForeignKey("UserId")
276 .OnDelete(DeleteBehavior.Cascade)
277 .IsRequired();
278 });
279
280 modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<System.Guid>", b =>
281 {
282 b.HasOne("TirsvadCLI.Portfolio.Domain.Entities.ApplicationUser", null)
283 .WithMany()
284 .HasForeignKey("UserId")
285 .OnDelete(DeleteBehavior.Cascade)
286 .IsRequired();
287 });
288#pragma warning restore 612, 618
289 }
290 }
291}