source: PostgreSqlDotnetCore/Data/Migrations/20221229203724_Initial.Designer.cs

main
Last change on this file was 2aea0fd, checked in by ElenaMoskova <elena.moskova99@…>, 4 months ago

init commit Elena

  • Property mode set to 100644
File size: 10.1 KB
Line 
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;
8using PostgreSqlDotnetCore.Data;
9
10#nullable disable
11
12namespace PostgreSqlDotnetCore.Migrations
13{
14 [DbContext(typeof(ApplicationDbContext))]
15 [Migration("20221229203724_Initial")]
16 partial class Initial
17 {
18 /// <inheritdoc />
19 protected override void BuildTargetModel(ModelBuilder modelBuilder)
20 {
21#pragma warning disable 612, 618
22 modelBuilder
23 .HasAnnotation("ProductVersion", "7.0.1")
24 .HasAnnotation("Relational:MaxIdentifierLength", 63);
25
26 NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
27
28 modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
29 {
30 b.Property<string>("Id")
31 .HasColumnType("text");
32
33 b.Property<string>("ConcurrencyStamp")
34 .IsConcurrencyToken()
35 .HasColumnType("text");
36
37 b.Property<string>("Name")
38 .HasMaxLength(256)
39 .HasColumnType("character varying(256)");
40
41 b.Property<string>("NormalizedName")
42 .HasMaxLength(256)
43 .HasColumnType("character varying(256)");
44
45 b.HasKey("Id");
46
47 b.HasIndex("NormalizedName")
48 .IsUnique()
49 .HasDatabaseName("RoleNameIndex");
50
51 b.ToTable("AspNetRoles", (string)null);
52 });
53
54 modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
55 {
56 b.Property<int>("Id")
57 .ValueGeneratedOnAdd()
58 .HasColumnType("integer");
59
60 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
61
62 b.Property<string>("ClaimType")
63 .HasColumnType("text");
64
65 b.Property<string>("ClaimValue")
66 .HasColumnType("text");
67
68 b.Property<string>("RoleId")
69 .IsRequired()
70 .HasColumnType("text");
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.IdentityUser", b =>
80 {
81 b.Property<string>("Id")
82 .HasColumnType("text");
83
84 b.Property<int>("AccessFailedCount")
85 .HasColumnType("integer");
86
87 b.Property<string>("ConcurrencyStamp")
88 .IsConcurrencyToken()
89 .HasColumnType("text");
90
91 b.Property<string>("Email")
92 .HasMaxLength(256)
93 .HasColumnType("character varying(256)");
94
95 b.Property<bool>("EmailConfirmed")
96 .HasColumnType("boolean");
97
98 b.Property<bool>("LockoutEnabled")
99 .HasColumnType("boolean");
100
101 b.Property<DateTimeOffset?>("LockoutEnd")
102 .HasColumnType("timestamp with time zone");
103
104 b.Property<string>("NormalizedEmail")
105 .HasMaxLength(256)
106 .HasColumnType("character varying(256)");
107
108 b.Property<string>("NormalizedUserName")
109 .HasMaxLength(256)
110 .HasColumnType("character varying(256)");
111
112 b.Property<string>("PasswordHash")
113 .HasColumnType("text");
114
115 b.Property<string>("PhoneNumber")
116 .HasColumnType("text");
117
118 b.Property<bool>("PhoneNumberConfirmed")
119 .HasColumnType("boolean");
120
121 b.Property<string>("SecurityStamp")
122 .HasColumnType("text");
123
124 b.Property<bool>("TwoFactorEnabled")
125 .HasColumnType("boolean");
126
127 b.Property<string>("UserName")
128 .HasMaxLength(256)
129 .HasColumnType("character varying(256)");
130
131 b.HasKey("Id");
132
133 b.HasIndex("NormalizedEmail")
134 .HasDatabaseName("EmailIndex");
135
136 b.HasIndex("NormalizedUserName")
137 .IsUnique()
138 .HasDatabaseName("UserNameIndex");
139
140 b.ToTable("AspNetUsers", (string)null);
141 });
142
143 modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
144 {
145 b.Property<int>("Id")
146 .ValueGeneratedOnAdd()
147 .HasColumnType("integer");
148
149 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
150
151 b.Property<string>("ClaimType")
152 .HasColumnType("text");
153
154 b.Property<string>("ClaimValue")
155 .HasColumnType("text");
156
157 b.Property<string>("UserId")
158 .IsRequired()
159 .HasColumnType("text");
160
161 b.HasKey("Id");
162
163 b.HasIndex("UserId");
164
165 b.ToTable("AspNetUserClaims", (string)null);
166 });
167
168 modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
169 {
170 b.Property<string>("LoginProvider")
171 .HasMaxLength(128)
172 .HasColumnType("character varying(128)");
173
174 b.Property<string>("ProviderKey")
175 .HasMaxLength(128)
176 .HasColumnType("character varying(128)");
177
178 b.Property<string>("ProviderDisplayName")
179 .HasColumnType("text");
180
181 b.Property<string>("UserId")
182 .IsRequired()
183 .HasColumnType("text");
184
185 b.HasKey("LoginProvider", "ProviderKey");
186
187 b.HasIndex("UserId");
188
189 b.ToTable("AspNetUserLogins", (string)null);
190 });
191
192 modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
193 {
194 b.Property<string>("UserId")
195 .HasColumnType("text");
196
197 b.Property<string>("RoleId")
198 .HasColumnType("text");
199
200 b.HasKey("UserId", "RoleId");
201
202 b.HasIndex("RoleId");
203
204 b.ToTable("AspNetUserRoles", (string)null);
205 });
206
207 modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
208 {
209 b.Property<string>("UserId")
210 .HasColumnType("text");
211
212 b.Property<string>("LoginProvider")
213 .HasMaxLength(128)
214 .HasColumnType("character varying(128)");
215
216 b.Property<string>("Name")
217 .HasMaxLength(128)
218 .HasColumnType("character varying(128)");
219
220 b.Property<string>("Value")
221 .HasColumnType("text");
222
223 b.HasKey("UserId", "LoginProvider", "Name");
224
225 b.ToTable("AspNetUserTokens", (string)null);
226 });
227
228 modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
229 {
230 b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
231 .WithMany()
232 .HasForeignKey("RoleId")
233 .OnDelete(DeleteBehavior.Cascade)
234 .IsRequired();
235 });
236
237 modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
238 {
239 b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser", null)
240 .WithMany()
241 .HasForeignKey("UserId")
242 .OnDelete(DeleteBehavior.Cascade)
243 .IsRequired();
244 });
245
246 modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
247 {
248 b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser", null)
249 .WithMany()
250 .HasForeignKey("UserId")
251 .OnDelete(DeleteBehavior.Cascade)
252 .IsRequired();
253 });
254
255 modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
256 {
257 b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
258 .WithMany()
259 .HasForeignKey("RoleId")
260 .OnDelete(DeleteBehavior.Cascade)
261 .IsRequired();
262
263 b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser", null)
264 .WithMany()
265 .HasForeignKey("UserId")
266 .OnDelete(DeleteBehavior.Cascade)
267 .IsRequired();
268 });
269
270 modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
271 {
272 b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser", null)
273 .WithMany()
274 .HasForeignKey("UserId")
275 .OnDelete(DeleteBehavior.Cascade)
276 .IsRequired();
277 });
278#pragma warning restore 612, 618
279 }
280 }
281}
Note: See TracBrowser for help on using the repository browser.