21#pragma warning disable 612, 618
23 .HasAnnotation(
"ProductVersion",
"10.0.2")
24 .HasAnnotation(
"Relational:MaxIdentifierLength", 63);
26 NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
28 modelBuilder.Entity(
"Microsoft.AspNetCore.Identity.IdentityRole<System.Guid>", b =>
30 b.Property<Guid>(
"Id")
31 .ValueGeneratedOnAdd()
32 .HasColumnType(
"uuid");
34 b.Property<
string>(
"ConcurrencyStamp")
36 .HasColumnType(
"text");
38 b.Property<
string>(
"Name")
40 .HasColumnType(
"character varying(256)");
42 b.Property<
string>(
"NormalizedName")
44 .HasColumnType(
"character varying(256)");
48 b.HasIndex(
"NormalizedName")
50 .HasDatabaseName(
"RoleNameIndex");
52 b.ToTable(
"AspNetRoles", (
string)
null);
55 modelBuilder.Entity(
"Microsoft.AspNetCore.Identity.IdentityRoleClaim<System.Guid>", b =>
58 .ValueGeneratedOnAdd()
59 .HasColumnType(
"integer");
61 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<
int>(
"Id"));
63 b.Property<
string>(
"ClaimType")
64 .HasColumnType(
"text");
66 b.Property<
string>(
"ClaimValue")
67 .HasColumnType(
"text");
69 b.Property<Guid>(
"RoleId")
70 .HasColumnType(
"uuid");
76 b.ToTable(
"AspNetRoleClaims", (
string)
null);
79 modelBuilder.Entity(
"Microsoft.AspNetCore.Identity.IdentityUserClaim<System.Guid>", b =>
82 .ValueGeneratedOnAdd()
83 .HasColumnType(
"integer");
85 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<
int>(
"Id"));
87 b.Property<
string>(
"ClaimType")
88 .HasColumnType(
"text");
90 b.Property<
string>(
"ClaimValue")
91 .HasColumnType(
"text");
93 b.Property<Guid>(
"UserId")
94 .HasColumnType(
"uuid");
100 b.ToTable(
"AspNetUserClaims", (
string)
null);
103 modelBuilder.Entity(
"Microsoft.AspNetCore.Identity.IdentityUserLogin<System.Guid>", b =>
105 b.Property<
string>(
"LoginProvider")
106 .HasColumnType(
"text");
108 b.Property<
string>(
"ProviderKey")
109 .HasColumnType(
"text");
111 b.Property<
string>(
"ProviderDisplayName")
112 .HasColumnType(
"text");
114 b.Property<Guid>(
"UserId")
115 .HasColumnType(
"uuid");
117 b.HasKey(
"LoginProvider",
"ProviderKey");
119 b.HasIndex(
"UserId");
121 b.ToTable(
"AspNetUserLogins", (
string)
null);
124 modelBuilder.Entity(
"Microsoft.AspNetCore.Identity.IdentityUserRole<System.Guid>", b =>
126 b.Property<Guid>(
"UserId")
127 .HasColumnType(
"uuid");
129 b.Property<Guid>(
"RoleId")
130 .HasColumnType(
"uuid");
132 b.HasKey(
"UserId",
"RoleId");
134 b.HasIndex(
"RoleId");
136 b.ToTable(
"AspNetUserRoles", (
string)
null);
139 modelBuilder.Entity(
"Microsoft.AspNetCore.Identity.IdentityUserToken<System.Guid>", b =>
141 b.Property<Guid>(
"UserId")
142 .HasColumnType(
"uuid");
144 b.Property<
string>(
"LoginProvider")
145 .HasColumnType(
"text");
147 b.Property<
string>(
"Name")
148 .HasColumnType(
"text");
150 b.Property<
string>(
"Value")
151 .HasColumnType(
"text");
153 b.HasKey(
"UserId",
"LoginProvider",
"Name");
155 b.ToTable(
"AspNetUserTokens", (
string)
null);
158 modelBuilder.Entity(
"TirsvadCLI.Portfolio.Domain.Entities.ApplicationUser", b =>
160 b.Property<Guid>(
"Id")
161 .ValueGeneratedOnAdd()
162 .HasColumnType(
"uuid");
164 b.Property<
int>(
"AccessFailedCount")
165 .HasColumnType(
"integer");
167 b.Property<
string>(
"ConcurrencyStamp")
168 .IsConcurrencyToken()
169 .HasColumnType(
"text");
171 b.Property<
string>(
"Email")
173 .HasColumnType(
"character varying(256)");
175 b.Property<
bool>(
"EmailConfirmed")
176 .HasColumnType(
"boolean");
178 b.Property<
bool>(
"LockoutEnabled")
179 .HasColumnType(
"boolean");
181 b.Property<DateTimeOffset?>(
"LockoutEnd")
182 .HasColumnType(
"timestamp with time zone");
184 b.Property<
string>(
"NormalizedEmail")
186 .HasColumnType(
"character varying(256)");
188 b.Property<
string>(
"NormalizedUserName")
190 .HasColumnType(
"character varying(256)");
192 b.Property<
string>(
"PasswordHash")
193 .HasColumnType(
"text");
195 b.Property<
string>(
"PhoneNumber")
196 .HasColumnType(
"text");
198 b.Property<
bool>(
"PhoneNumberConfirmed")
199 .HasColumnType(
"boolean");
201 b.Property<
string>(
"SecurityStamp")
202 .HasColumnType(
"text");
204 b.Property<
bool>(
"TwoFactorEnabled")
205 .HasColumnType(
"boolean");
207 b.Property<
string>(
"UserName")
209 .HasColumnType(
"character varying(256)");
213 b.HasIndex(
"NormalizedEmail")
214 .HasDatabaseName(
"EmailIndex");
216 b.HasIndex(
"NormalizedUserName")
218 .HasDatabaseName(
"UserNameIndex");
220 b.ToTable(
"AspNetUsers", (
string)
null);
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"
241 modelBuilder.Entity(
"Microsoft.AspNetCore.Identity.IdentityRoleClaim<System.Guid>", b =>
243 b.HasOne(
"Microsoft.AspNetCore.Identity.IdentityRole<System.Guid>",
null)
245 .HasForeignKey(
"RoleId")
246 .OnDelete(DeleteBehavior.Cascade)
250 modelBuilder.Entity(
"Microsoft.AspNetCore.Identity.IdentityUserClaim<System.Guid>", b =>
252 b.HasOne(
"TirsvadCLI.Portfolio.Domain.Entities.ApplicationUser",
null)
254 .HasForeignKey(
"UserId")
255 .OnDelete(DeleteBehavior.Cascade)
259 modelBuilder.Entity(
"Microsoft.AspNetCore.Identity.IdentityUserLogin<System.Guid>", b =>
261 b.HasOne(
"TirsvadCLI.Portfolio.Domain.Entities.ApplicationUser",
null)
263 .HasForeignKey(
"UserId")
264 .OnDelete(DeleteBehavior.Cascade)
268 modelBuilder.Entity(
"Microsoft.AspNetCore.Identity.IdentityUserRole<System.Guid>", b =>
270 b.HasOne(
"Microsoft.AspNetCore.Identity.IdentityRole<System.Guid>",
null)
272 .HasForeignKey(
"RoleId")
273 .OnDelete(DeleteBehavior.Cascade)
276 b.HasOne(
"TirsvadCLI.Portfolio.Domain.Entities.ApplicationUser",
null)
278 .HasForeignKey(
"UserId")
279 .OnDelete(DeleteBehavior.Cascade)
283 modelBuilder.Entity(
"Microsoft.AspNetCore.Identity.IdentityUserToken<System.Guid>", b =>
285 b.HasOne(
"TirsvadCLI.Portfolio.Domain.Entities.ApplicationUser",
null)
287 .HasForeignKey(
"UserId")
288 .OnDelete(DeleteBehavior.Cascade)
291#pragma warning restore 612, 618