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