source: FarmatikoData/Migrations/FarmatikoDataContextModelSnapshot.cs@ db484c9

Last change on this file since db484c9 was db484c9, checked in by DimitarSlezenkovski <dslezenkovski@…>, 23 months ago

Fix bugs

  • Property mode set to 100644
File size: 15.0 KB
RevLine 
[a8ccc2c]1// <auto-generated />
2using System;
3using FarmatikoData;
4using Microsoft.EntityFrameworkCore;
5using Microsoft.EntityFrameworkCore.Infrastructure;
6using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
7using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
8
9namespace FarmatikoData.Migrations
10{
11 [DbContext(typeof(FarmatikoDataContext))]
12 partial class FarmatikoDataContextModelSnapshot : ModelSnapshot
13 {
14 protected override void BuildModel(ModelBuilder modelBuilder)
15 {
16#pragma warning disable 612, 618
17 modelBuilder
[8e74e2f]18 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.SerialColumn)
19 .HasAnnotation("ProductVersion", "3.1.10")
[a8ccc2c]20 .HasAnnotation("Relational:MaxIdentifierLength", 63);
21
[d23bf72]22 modelBuilder.Entity("FarmatikoData.Models.HealthFacility", b =>
[a8ccc2c]23 {
24 b.Property<int>("Id")
25 .ValueGeneratedOnAdd()
26 .HasColumnType("integer")
[8e74e2f]27 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.SerialColumn);
[a8ccc2c]28
29 b.Property<string>("Address")
30 .IsRequired()
31 .HasColumnType("text");
32
33 b.Property<DateTime>("CreatedOn")
34 .HasColumnType("timestamp without time zone");
35
[e42f61a]36 b.Property<DateTime?>("DeletedOn")
[a8ccc2c]37 .HasColumnType("timestamp without time zone");
38
39 b.Property<string>("Email")
40 .HasColumnType("text");
41
42 b.Property<string>("Municipality")
43 .IsRequired()
44 .HasColumnType("text");
45
46 b.Property<string>("Name")
47 .IsRequired()
48 .HasColumnType("text");
49
50 b.Property<string>("Phone")
51 .HasColumnType("text");
52
53 b.Property<string>("Type")
54 .IsRequired()
55 .HasColumnType("text");
56
57 b.HasKey("Id");
58
59 b.ToTable("HealthFacilities");
60 });
61
[d23bf72]62 modelBuilder.Entity("FarmatikoData.Models.HealthcareWorker", b =>
[a8ccc2c]63 {
64 b.Property<int>("Id")
65 .ValueGeneratedOnAdd()
66 .HasColumnType("integer")
[8e74e2f]67 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.SerialColumn);
[a8ccc2c]68
69 b.Property<string>("Branch")
70 .IsRequired()
71 .HasColumnType("text");
72
73 b.Property<DateTime>("CreatedOn")
74 .HasColumnType("timestamp without time zone");
75
[e42f61a]76 b.Property<DateTime?>("DeletedOn")
[a8ccc2c]77 .HasColumnType("timestamp without time zone");
78
79 b.Property<int>("FacilityId")
80 .HasColumnType("integer");
81
82 b.Property<string>("Name")
83 .IsRequired()
84 .HasColumnType("text");
85
86 b.Property<string>("Title")
87 .HasColumnType("text");
88
89 b.HasKey("Id");
90
91 b.HasIndex("FacilityId");
92
93 b.ToTable("HealthcareWorkers");
94 });
95
96 modelBuilder.Entity("FarmatikoData.Models.Medicine", b =>
97 {
98 b.Property<int>("Id")
99 .ValueGeneratedOnAdd()
100 .HasColumnType("integer")
[8e74e2f]101 .HasAnnotation("Npgsql:IdentitySequenceOptions", "'1', '1', '', '', 'False', '1'")
102 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.SerialColumn);
[a8ccc2c]103
104 b.Property<DateTime>("CreatedOn")
105 .HasColumnType("timestamp without time zone");
106
[e42f61a]107 b.Property<DateTime?>("DeletedOn")
[a8ccc2c]108 .HasColumnType("timestamp without time zone");
109
110 b.Property<string>("Form")
111 .HasColumnType("text");
112
113 b.Property<string>("Manufacturer")
[d23bf72]114 .IsRequired()
[a8ccc2c]115 .HasColumnType("text");
116
117 b.Property<string>("Name")
[d23bf72]118 .IsRequired()
[a8ccc2c]119 .HasColumnType("text");
120
121 b.Property<string>("Packaging")
122 .HasColumnType("text");
123
124 b.Property<float>("Price")
125 .HasColumnType("real");
126
127 b.Property<string>("Strength")
[d23bf72]128 .IsRequired()
[a8ccc2c]129 .HasColumnType("text");
130
131 b.Property<string>("WayOfIssuing")
[d23bf72]132 .IsRequired()
[a8ccc2c]133 .HasColumnType("text");
134
135 b.HasKey("Id");
136
[1db5673]137 b.ToTable("Medicines");
[a8ccc2c]138 });
139
140 modelBuilder.Entity("FarmatikoData.Models.Pandemic", b =>
141 {
142 b.Property<int>("Id")
143 .ValueGeneratedOnAdd()
144 .HasColumnType("integer")
[8e74e2f]145 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.SerialColumn);
[a8ccc2c]146
[e42f61a]147 b.Property<long>("ActiveGlobal")
148 .HasColumnType("bigint");
[a8ccc2c]149
150 b.Property<int>("ActiveMK")
151 .HasColumnType("integer");
152
153 b.Property<DateTime>("CreatedOn")
154 .HasColumnType("timestamp without time zone");
155
[e42f61a]156 b.Property<long>("DeathsGlobal")
157 .HasColumnType("bigint");
[a8ccc2c]158
159 b.Property<int>("DeathsMK")
160 .HasColumnType("integer");
161
[e42f61a]162 b.Property<DateTime?>("DeletedOn")
[a8ccc2c]163 .HasColumnType("timestamp without time zone");
164
165 b.Property<string>("Name")
[d23bf72]166 .IsRequired()
[a8ccc2c]167 .HasColumnType("text");
168
169 b.Property<int>("NewMK")
170 .HasColumnType("integer");
171
[e42f61a]172 b.Property<long>("TotalGlobal")
173 .HasColumnType("bigint");
[a8ccc2c]174
175 b.Property<int>("TotalMK")
176 .HasColumnType("integer");
177
178 b.HasKey("Id");
179
180 b.ToTable("Pandemics");
181 });
182
183 modelBuilder.Entity("FarmatikoData.Models.Pharmacy", b =>
184 {
185 b.Property<int>("Id")
186 .ValueGeneratedOnAdd()
187 .HasColumnType("integer")
[8e74e2f]188 .HasAnnotation("Npgsql:IdentitySequenceOptions", "'1', '1', '', '', 'False', '1'")
189 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.SerialColumn);
[a8ccc2c]190
191 b.Property<string>("Address")
[d23bf72]192 .IsRequired()
[a8ccc2c]193 .HasColumnType("text");
194
195 b.Property<DateTime>("CreatedOn")
196 .HasColumnType("timestamp without time zone");
197
[e42f61a]198 b.Property<DateTime?>("DeletedOn")
[a8ccc2c]199 .HasColumnType("timestamp without time zone");
200
201 b.Property<string>("Location")
[d23bf72]202 .IsRequired()
[a8ccc2c]203 .HasColumnType("text");
204
205 b.Property<string>("Name")
[d23bf72]206 .IsRequired()
[a8ccc2c]207 .HasColumnType("text");
208
[db484c9]209 b.Property<int?>("PharmacyHeadId")
210 .HasColumnType("integer");
211
[1db5673]212 b.Property<int>("PheadId")
[a8ccc2c]213 .HasColumnType("integer");
214
215 b.Property<bool>("WorkAllTime")
216 .HasColumnType("boolean");
217
218 b.HasKey("Id");
219
[db484c9]220 b.HasIndex("PharmacyHeadId");
[a8ccc2c]221
222 b.ToTable("Pharmacies");
223 });
224
225 modelBuilder.Entity("FarmatikoData.Models.PharmacyHead", b =>
226 {
227 b.Property<int>("Id")
228 .ValueGeneratedOnAdd()
229 .HasColumnType("integer")
[8e74e2f]230 .HasAnnotation("Npgsql:IdentitySequenceOptions", "'1', '1', '', '', 'False', '1'")
231 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.SerialColumn);
[a8ccc2c]232
233 b.Property<DateTime>("CreatedOn")
234 .HasColumnType("timestamp without time zone");
235
[e42f61a]236 b.Property<DateTime?>("DeletedOn")
[a8ccc2c]237 .HasColumnType("timestamp without time zone");
238
239 b.Property<string>("Email")
[d23bf72]240 .IsRequired()
[a8ccc2c]241 .HasColumnType("text");
242
243 b.Property<string>("Name")
[d23bf72]244 .IsRequired()
[a8ccc2c]245 .HasColumnType("text");
246
247 b.Property<string>("Password")
[d23bf72]248 .IsRequired()
[a8ccc2c]249 .HasColumnType("text");
250
[db484c9]251 b.Property<int?>("UserId")
252 .HasColumnType("integer");
253
[d23bf72]254 b.HasKey("Id");
255
[db484c9]256 b.HasIndex("UserId");
257
[d23bf72]258 b.ToTable("PharmacyHeads");
259 });
260
[1db5673]261 modelBuilder.Entity("FarmatikoData.Models.PharmacyHeadMedicine", b =>
262 {
[db484c9]263 b.Property<int>("Id")
264 .ValueGeneratedOnAdd()
265 .HasColumnType("integer")
266 .HasAnnotation("Npgsql:IdentitySequenceOptions", "'1', '1', '', '', 'False', '1'")
267 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.SerialColumn);
[1db5673]268
269 b.Property<DateTime>("CreatedOn")
270 .HasColumnType("timestamp without time zone");
271
272 b.Property<DateTime?>("DeletedOn")
273 .HasColumnType("timestamp without time zone");
274
[db484c9]275 b.Property<int?>("HeadId")
276 .HasColumnType("integer");
277
278 b.Property<int>("MedicineId")
279 .HasColumnType("integer");
280
281 b.Property<int>("PheadId")
282 .HasColumnType("integer");
283
284 b.HasKey("Id");
[1db5673]285
[db484c9]286 b.HasIndex("HeadId");
[1db5673]287
288 b.HasIndex("MedicineId");
289
290 b.ToTable("PharmacyHeadMedicines");
291 });
292
[d23bf72]293 modelBuilder.Entity("FarmatikoData.Models.RequestPharmacyHead", b =>
294 {
295 b.Property<int>("Id")
296 .ValueGeneratedOnAdd()
297 .HasColumnType("integer")
[8e74e2f]298 .HasAnnotation("Npgsql:IdentitySequenceOptions", "'1', '1', '', '', 'False', '1'")
299 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.SerialColumn);
[d23bf72]300
301 b.Property<DateTime>("CreatedOn")
302 .HasColumnType("timestamp without time zone");
303
304 b.Property<DateTime?>("DeletedOn")
305 .HasColumnType("timestamp without time zone");
306
307 b.Property<int>("HeadId")
[a8ccc2c]308 .HasColumnType("integer");
309
[d23bf72]310 b.Property<int>("PharmacyId")
[a8ccc2c]311 .HasColumnType("integer");
312
313 b.HasKey("Id");
314
[d23bf72]315 b.HasIndex("HeadId");
316
[a8ccc2c]317 b.HasIndex("PharmacyId");
318
[d23bf72]319 b.ToTable("PHRequests");
320 });
[a8ccc2c]321
[d23bf72]322 modelBuilder.Entity("FarmatikoData.Models.User", b =>
323 {
324 b.Property<int>("Id")
325 .ValueGeneratedOnAdd()
326 .HasColumnType("integer")
[8e74e2f]327 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.SerialColumn);
[d23bf72]328
329 b.Property<DateTime>("CreatedOn")
330 .HasColumnType("timestamp without time zone");
331
332 b.Property<DateTime?>("DeletedOn")
333 .HasColumnType("timestamp without time zone");
334
335 b.Property<string>("Email")
[8e74e2f]336 .IsRequired()
[d23bf72]337 .HasColumnType("text");
338
339 b.Property<string>("Name")
[8e74e2f]340 .IsRequired()
[d23bf72]341 .HasColumnType("text");
342
343 b.Property<string>("Password")
[8e74e2f]344 .IsRequired()
[d23bf72]345 .HasColumnType("text");
346
347 b.Property<int>("UserRole")
348 .HasColumnType("integer");
349
350 b.HasKey("Id");
351
352 b.ToTable("Users");
[a8ccc2c]353 });
354
[d23bf72]355 modelBuilder.Entity("FarmatikoData.Models.HealthcareWorker", b =>
[a8ccc2c]356 {
[d23bf72]357 b.HasOne("FarmatikoData.Models.HealthFacility", "Facility")
[a8ccc2c]358 .WithMany()
359 .HasForeignKey("FacilityId")
360 .OnDelete(DeleteBehavior.Cascade)
361 .IsRequired();
362 });
363
[db484c9]364 modelBuilder.Entity("FarmatikoData.Models.Pharmacy", b =>
[a8ccc2c]365 {
[db484c9]366 b.HasOne("FarmatikoData.Models.PharmacyHead", "PharmacyHead")
367 .WithMany("Pharmacies")
[a8ccc2c]368 .HasForeignKey("PharmacyHeadId");
369 });
370
[db484c9]371 modelBuilder.Entity("FarmatikoData.Models.PharmacyHead", b =>
[a8ccc2c]372 {
[db484c9]373 b.HasOne("FarmatikoData.Models.User", "User")
374 .WithMany()
375 .HasForeignKey("UserId");
[1db5673]376 });
377
378 modelBuilder.Entity("FarmatikoData.Models.PharmacyHeadMedicine", b =>
379 {
[db484c9]380 b.HasOne("FarmatikoData.Models.PharmacyHead", "Head")
381 .WithMany("Medicines")
382 .HasForeignKey("HeadId");
383
[1db5673]384 b.HasOne("FarmatikoData.Models.Medicine", "Medicine")
[db484c9]385 .WithMany("Medicines")
[1db5673]386 .HasForeignKey("MedicineId")
387 .OnDelete(DeleteBehavior.Cascade)
388 .IsRequired();
[a8ccc2c]389 });
390
[d23bf72]391 modelBuilder.Entity("FarmatikoData.Models.RequestPharmacyHead", b =>
[a8ccc2c]392 {
[d23bf72]393 b.HasOne("FarmatikoData.Models.PharmacyHead", "Head")
[a8ccc2c]394 .WithMany()
[d23bf72]395 .HasForeignKey("HeadId")
396 .OnDelete(DeleteBehavior.Cascade)
397 .IsRequired();
[a8ccc2c]398
[d23bf72]399 b.HasOne("FarmatikoData.Models.Pharmacy", "Pharmacy")
[a8ccc2c]400 .WithMany()
[d23bf72]401 .HasForeignKey("PharmacyId")
402 .OnDelete(DeleteBehavior.Cascade)
403 .IsRequired();
[a8ccc2c]404 });
405#pragma warning restore 612, 618
406 }
407 }
408}
Note: See TracBrowser for help on using the repository browser.