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