source: PostgreSqlDotnetCore/Data/Migrations/ApplicationDbContextModelSnapshot.cs@ 72b1da2

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

init commit Elena

  • Property mode set to 100644
File size: 13.1 KB
Line 
1// <auto-generated />
2using System;
3using Microsoft.EntityFrameworkCore;
4using Microsoft.EntityFrameworkCore.Infrastructure;
5using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
6using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
7using PostgreSqlDotnetCore.Data;
8
9#nullable disable
10
11namespace PostgreSqlDotnetCore.Migrations
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 .HasDefaultSchema("project")
21 .HasAnnotation("ProductVersion", "7.0.15")
22 .HasAnnotation("Relational:MaxIdentifierLength", 63);
23
24 NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
25
26 modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
27 {
28 b.Property<string>("Id")
29 .HasColumnType("text");
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", "project");
50 });
51
52 modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", 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<string>("RoleId")
67 .IsRequired()
68 .HasColumnType("text");
69
70 b.HasKey("Id");
71
72 b.HasIndex("RoleId");
73
74 b.ToTable("AspNetRoleClaims", "project");
75 });
76
77 modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUser", b =>
78 {
79 b.Property<string>("Id")
80 .HasColumnType("text");
81
82 b.Property<int>("AccessFailedCount")
83 .HasColumnType("integer");
84
85 b.Property<string>("ConcurrencyStamp")
86 .IsConcurrencyToken()
87 .HasColumnType("text");
88
89 b.Property<string>("Email")
90 .HasMaxLength(256)
91 .HasColumnType("character varying(256)");
92
93 b.Property<bool>("EmailConfirmed")
94 .HasColumnType("boolean");
95
96 b.Property<bool>("LockoutEnabled")
97 .HasColumnType("boolean");
98
99 b.Property<DateTimeOffset?>("LockoutEnd")
100 .HasColumnType("timestamp with time zone");
101
102 b.Property<string>("NormalizedEmail")
103 .HasMaxLength(256)
104 .HasColumnType("character varying(256)");
105
106 b.Property<string>("NormalizedUserName")
107 .HasMaxLength(256)
108 .HasColumnType("character varying(256)");
109
110 b.Property<string>("PasswordHash")
111 .HasColumnType("text");
112
113 b.Property<string>("PhoneNumber")
114 .HasColumnType("text");
115
116 b.Property<bool>("PhoneNumberConfirmed")
117 .HasColumnType("boolean");
118
119 b.Property<string>("SecurityStamp")
120 .HasColumnType("text");
121
122 b.Property<bool>("TwoFactorEnabled")
123 .HasColumnType("boolean");
124
125 b.Property<string>("UserName")
126 .HasMaxLength(256)
127 .HasColumnType("character varying(256)");
128
129 b.HasKey("Id");
130
131 b.HasIndex("NormalizedEmail")
132 .HasDatabaseName("EmailIndex");
133
134 b.HasIndex("NormalizedUserName")
135 .IsUnique()
136 .HasDatabaseName("UserNameIndex");
137
138 b.ToTable("AspNetUsers", "project");
139 });
140
141 modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
142 {
143 b.Property<int>("Id")
144 .ValueGeneratedOnAdd()
145 .HasColumnType("integer");
146
147 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
148
149 b.Property<string>("ClaimType")
150 .HasColumnType("text");
151
152 b.Property<string>("ClaimValue")
153 .HasColumnType("text");
154
155 b.Property<string>("UserId")
156 .IsRequired()
157 .HasColumnType("text");
158
159 b.HasKey("Id");
160
161 b.HasIndex("UserId");
162
163 b.ToTable("AspNetUserClaims", "project");
164 });
165
166 modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
167 {
168 b.Property<string>("LoginProvider")
169 .HasMaxLength(128)
170 .HasColumnType("character varying(128)");
171
172 b.Property<string>("ProviderKey")
173 .HasMaxLength(128)
174 .HasColumnType("character varying(128)");
175
176 b.Property<string>("ProviderDisplayName")
177 .HasColumnType("text");
178
179 b.Property<string>("UserId")
180 .IsRequired()
181 .HasColumnType("text");
182
183 b.HasKey("LoginProvider", "ProviderKey");
184
185 b.HasIndex("UserId");
186
187 b.ToTable("AspNetUserLogins", "project");
188 });
189
190 modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
191 {
192 b.Property<string>("UserId")
193 .HasColumnType("text");
194
195 b.Property<string>("RoleId")
196 .HasColumnType("text");
197
198 b.HasKey("UserId", "RoleId");
199
200 b.HasIndex("RoleId");
201
202 b.ToTable("AspNetUserRoles", "project");
203 });
204
205 modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
206 {
207 b.Property<string>("UserId")
208 .HasColumnType("text");
209
210 b.Property<string>("LoginProvider")
211 .HasMaxLength(128)
212 .HasColumnType("character varying(128)");
213
214 b.Property<string>("Name")
215 .HasMaxLength(128)
216 .HasColumnType("character varying(128)");
217
218 b.Property<string>("Value")
219 .HasColumnType("text");
220
221 b.HasKey("UserId", "LoginProvider", "Name");
222
223 b.ToTable("AspNetUserTokens", "project");
224 });
225
226 modelBuilder.Entity("PostgreSqlDotnetCore.Models.UsersClass", b =>
227 {
228 b.Property<int>("id")
229 .ValueGeneratedOnAdd()
230 .HasColumnType("integer");
231
232 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("id"));
233
234 b.Property<string>("email")
235 .IsRequired()
236 .HasColumnType("text");
237
238 b.Property<int?>("jobs_id")
239 .HasColumnType("integer");
240
241 b.Property<string>("lastname")
242 .IsRequired()
243 .HasColumnType("text");
244
245 b.Property<string>("name")
246 .IsRequired()
247 .HasColumnType("text");
248
249 b.Property<string>("number")
250 .IsRequired()
251 .HasColumnType("text");
252
253 b.Property<string>("password")
254 .IsRequired()
255 .HasColumnType("text");
256
257 b.Property<int?>("role_id")
258 .HasColumnType("integer");
259
260 b.HasKey("id");
261
262 b.ToTable("users", "project", t =>
263 {
264 t.ExcludeFromMigrations();
265 });
266 });
267
268 modelBuilder.Entity("PostgreSqlDotnetCore.Models.VetCenter", b =>
269 {
270 b.Property<int>("id")
271 .ValueGeneratedOnAdd()
272 .HasColumnType("integer");
273
274 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("id"));
275
276 b.Property<string>("adress")
277 .IsRequired()
278 .HasColumnType("text");
279
280 b.Property<string>("citiesid")
281 .IsRequired()
282 .HasColumnType("text");
283
284 b.Property<string>("description")
285 .IsRequired()
286 .HasColumnType("text");
287
288 b.Property<float>("latitude")
289 .HasColumnType("real");
290
291 b.Property<float>("longitude")
292 .HasColumnType("real");
293
294 b.Property<string>("name")
295 .IsRequired()
296 .HasColumnType("text");
297
298 b.Property<string>("phonenumber")
299 .IsRequired()
300 .HasColumnType("text");
301
302 b.Property<string>("workinghours")
303 .IsRequired()
304 .HasColumnType("text");
305
306 b.HasKey("id");
307
308 b.ToTable("vet_centers", "project", t =>
309 {
310 t.ExcludeFromMigrations();
311 });
312 });
313
314 modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
315 {
316 b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
317 .WithMany()
318 .HasForeignKey("RoleId")
319 .OnDelete(DeleteBehavior.Cascade)
320 .IsRequired();
321 });
322
323 modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
324 {
325 b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser", null)
326 .WithMany()
327 .HasForeignKey("UserId")
328 .OnDelete(DeleteBehavior.Cascade)
329 .IsRequired();
330 });
331
332 modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
333 {
334 b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser", null)
335 .WithMany()
336 .HasForeignKey("UserId")
337 .OnDelete(DeleteBehavior.Cascade)
338 .IsRequired();
339 });
340
341 modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
342 {
343 b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
344 .WithMany()
345 .HasForeignKey("RoleId")
346 .OnDelete(DeleteBehavior.Cascade)
347 .IsRequired();
348
349 b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser", null)
350 .WithMany()
351 .HasForeignKey("UserId")
352 .OnDelete(DeleteBehavior.Cascade)
353 .IsRequired();
354 });
355
356 modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
357 {
358 b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser", null)
359 .WithMany()
360 .HasForeignKey("UserId")
361 .OnDelete(DeleteBehavior.Cascade)
362 .IsRequired();
363 });
364#pragma warning restore 612, 618
365 }
366 }
367}
Note: See TracBrowser for help on using the repository browser.