16 protected override void BuildModel(ModelBuilder modelBuilder)
18#pragma warning disable 612, 618
20 .HasAnnotation(
"ProductVersion",
"10.0.2")
21 .HasAnnotation(
"Relational:MaxIdentifierLength", 63);
23 NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
25 modelBuilder.Entity(
"Microsoft.AspNetCore.Identity.IdentityRole<System.Guid>", b =>
27 b.Property<Guid>(
"Id")
28 .ValueGeneratedOnAdd()
29 .HasColumnType(
"uuid");
31 b.Property<
string>(
"ConcurrencyStamp")
33 .HasColumnType(
"text");
35 b.Property<
string>(
"Name")
37 .HasColumnType(
"character varying(256)");
39 b.Property<
string>(
"NormalizedName")
41 .HasColumnType(
"character varying(256)");
45 b.HasIndex(
"NormalizedName")
47 .HasDatabaseName(
"RoleNameIndex");
49 b.ToTable(
"AspNetRoles", (
string)
null);
52 modelBuilder.Entity(
"Microsoft.AspNetCore.Identity.IdentityRoleClaim<System.Guid>", b =>
55 .ValueGeneratedOnAdd()
56 .HasColumnType(
"integer");
58 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<
int>(
"Id"));
60 b.Property<
string>(
"ClaimType")
61 .HasColumnType(
"text");
63 b.Property<
string>(
"ClaimValue")
64 .HasColumnType(
"text");
66 b.Property<Guid>(
"RoleId")
67 .HasColumnType(
"uuid");
73 b.ToTable(
"AspNetRoleClaims", (
string)
null);
76 modelBuilder.Entity(
"Microsoft.AspNetCore.Identity.IdentityUserClaim<System.Guid>", b =>
79 .ValueGeneratedOnAdd()
80 .HasColumnType(
"integer");
82 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<
int>(
"Id"));
84 b.Property<
string>(
"ClaimType")
85 .HasColumnType(
"text");
87 b.Property<
string>(
"ClaimValue")
88 .HasColumnType(
"text");
90 b.Property<Guid>(
"UserId")
91 .HasColumnType(
"uuid");
97 b.ToTable(
"AspNetUserClaims", (
string)
null);
100 modelBuilder.Entity(
"Microsoft.AspNetCore.Identity.IdentityUserLogin<System.Guid>", b =>
102 b.Property<
string>(
"LoginProvider")
103 .HasColumnType(
"text");
105 b.Property<
string>(
"ProviderKey")
106 .HasColumnType(
"text");
108 b.Property<
string>(
"ProviderDisplayName")
109 .HasColumnType(
"text");
111 b.Property<Guid>(
"UserId")
112 .HasColumnType(
"uuid");
114 b.HasKey(
"LoginProvider",
"ProviderKey");
116 b.HasIndex(
"UserId");
118 b.ToTable(
"AspNetUserLogins", (
string)
null);
121 modelBuilder.Entity(
"Microsoft.AspNetCore.Identity.IdentityUserRole<System.Guid>", b =>
123 b.Property<Guid>(
"UserId")
124 .HasColumnType(
"uuid");
126 b.Property<Guid>(
"RoleId")
127 .HasColumnType(
"uuid");
129 b.HasKey(
"UserId",
"RoleId");
131 b.HasIndex(
"RoleId");
133 b.ToTable(
"AspNetUserRoles", (
string)
null);
136 modelBuilder.Entity(
"Microsoft.AspNetCore.Identity.IdentityUserToken<System.Guid>", b =>
138 b.Property<Guid>(
"UserId")
139 .HasColumnType(
"uuid");
141 b.Property<
string>(
"LoginProvider")
142 .HasColumnType(
"text");
144 b.Property<
string>(
"Name")
145 .HasColumnType(
"text");
147 b.Property<
string>(
"Value")
148 .HasColumnType(
"text");
150 b.HasKey(
"UserId",
"LoginProvider",
"Name");
152 b.ToTable(
"AspNetUserTokens", (
string)
null);
155 modelBuilder.Entity(
"TirsvadCLI.Portfolio.Domain.Entities.ApplicationUser", b =>
157 b.Property<Guid>(
"Id")
158 .ValueGeneratedOnAdd()
159 .HasColumnType(
"uuid");
161 b.Property<
int>(
"AccessFailedCount")
162 .HasColumnType(
"integer");
164 b.Property<
string>(
"ConcurrencyStamp")
165 .IsConcurrencyToken()
166 .HasColumnType(
"text");
168 b.Property<
string>(
"Email")
170 .HasColumnType(
"character varying(256)");
172 b.Property<
bool>(
"EmailConfirmed")
173 .HasColumnType(
"boolean");
175 b.Property<
bool>(
"LockoutEnabled")
176 .HasColumnType(
"boolean");
178 b.Property<DateTimeOffset?>(
"LockoutEnd")
179 .HasColumnType(
"timestamp with time zone");
181 b.Property<
string>(
"NormalizedEmail")
183 .HasColumnType(
"character varying(256)");
185 b.Property<
string>(
"NormalizedUserName")
187 .HasColumnType(
"character varying(256)");
189 b.Property<
string>(
"PasswordHash")
190 .HasColumnType(
"text");
192 b.Property<
string>(
"PhoneNumber")
193 .HasColumnType(
"text");
195 b.Property<
bool>(
"PhoneNumberConfirmed")
196 .HasColumnType(
"boolean");
198 b.Property<
string>(
"SecurityStamp")
199 .HasColumnType(
"text");
201 b.Property<
bool>(
"TwoFactorEnabled")
202 .HasColumnType(
"boolean");
204 b.Property<
string>(
"UserName")
206 .HasColumnType(
"character varying(256)");
210 b.HasIndex(
"NormalizedEmail")
211 .HasDatabaseName(
"EmailIndex");
213 b.HasIndex(
"NormalizedUserName")
215 .HasDatabaseName(
"UserNameIndex");
217 b.ToTable(
"AspNetUsers", (
string)
null);
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"
238 modelBuilder.Entity(
"Microsoft.AspNetCore.Identity.IdentityRoleClaim<System.Guid>", b =>
240 b.HasOne(
"Microsoft.AspNetCore.Identity.IdentityRole<System.Guid>",
null)
242 .HasForeignKey(
"RoleId")
243 .OnDelete(DeleteBehavior.Cascade)
247 modelBuilder.Entity(
"Microsoft.AspNetCore.Identity.IdentityUserClaim<System.Guid>", b =>
249 b.HasOne(
"TirsvadCLI.Portfolio.Domain.Entities.ApplicationUser",
null)
251 .HasForeignKey(
"UserId")
252 .OnDelete(DeleteBehavior.Cascade)
256 modelBuilder.Entity(
"Microsoft.AspNetCore.Identity.IdentityUserLogin<System.Guid>", b =>
258 b.HasOne(
"TirsvadCLI.Portfolio.Domain.Entities.ApplicationUser",
null)
260 .HasForeignKey(
"UserId")
261 .OnDelete(DeleteBehavior.Cascade)
265 modelBuilder.Entity(
"Microsoft.AspNetCore.Identity.IdentityUserRole<System.Guid>", b =>
267 b.HasOne(
"Microsoft.AspNetCore.Identity.IdentityRole<System.Guid>",
null)
269 .HasForeignKey(
"RoleId")
270 .OnDelete(DeleteBehavior.Cascade)
273 b.HasOne(
"TirsvadCLI.Portfolio.Domain.Entities.ApplicationUser",
null)
275 .HasForeignKey(
"UserId")
276 .OnDelete(DeleteBehavior.Cascade)
280 modelBuilder.Entity(
"Microsoft.AspNetCore.Identity.IdentityUserToken<System.Guid>", b =>
282 b.HasOne(
"TirsvadCLI.Portfolio.Domain.Entities.ApplicationUser",
null)
284 .HasForeignKey(
"UserId")
285 .OnDelete(DeleteBehavior.Cascade)
288#pragma warning restore 612, 618