source: FarmatikoData/Migrations/20200729100744_Second Migration.Designer.cs@ 4e72684

Last change on this file since 4e72684 was e42f61a, checked in by DimitarSlezenkovski <dslezenkovski@…>, 4 years ago

Add more services

  • Property mode set to 100644
File size: 11.6 KB
Line 
1// <auto-generated />
2using System;
3using FarmatikoData;
4using Microsoft.EntityFrameworkCore;
5using Microsoft.EntityFrameworkCore.Infrastructure;
6using Microsoft.EntityFrameworkCore.Migrations;
7using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
8using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
9
10namespace FarmatikoData.Migrations
11{
12 [DbContext(typeof(FarmatikoDataContext))]
13 [Migration("20200729100744_Second Migration")]
14 partial class SecondMigration
15 {
16 protected override void BuildTargetModel(ModelBuilder modelBuilder)
17 {
18#pragma warning disable 612, 618
19 modelBuilder
20 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn)
21 .HasAnnotation("ProductVersion", "3.1.6")
22 .HasAnnotation("Relational:MaxIdentifierLength", 63);
23
24 modelBuilder.Entity("FarmatikoData.Models.HealthFacilities", b =>
25 {
26 b.Property<int>("Id")
27 .ValueGeneratedOnAdd()
28 .HasColumnType("integer")
29 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
30
31 b.Property<string>("Address")
32 .IsRequired()
33 .HasColumnType("text");
34
35 b.Property<DateTime>("CreatedOn")
36 .HasColumnType("timestamp without time zone");
37
38 b.Property<DateTime?>("DeletedOn")
39 .HasColumnType("timestamp without time zone");
40
41 b.Property<string>("Email")
42 .HasColumnType("text");
43
44 b.Property<string>("Municipality")
45 .IsRequired()
46 .HasColumnType("text");
47
48 b.Property<string>("Name")
49 .IsRequired()
50 .HasColumnType("text");
51
52 b.Property<string>("Phone")
53 .HasColumnType("text");
54
55 b.Property<string>("Type")
56 .IsRequired()
57 .HasColumnType("text");
58
59 b.HasKey("Id");
60
61 b.ToTable("HealthFacilities");
62 });
63
64 modelBuilder.Entity("FarmatikoData.Models.HealthcareWorkers", b =>
65 {
66 b.Property<int>("Id")
67 .ValueGeneratedOnAdd()
68 .HasColumnType("integer")
69 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
70
71 b.Property<string>("Branch")
72 .IsRequired()
73 .HasColumnType("text");
74
75 b.Property<DateTime>("CreatedOn")
76 .HasColumnType("timestamp without time zone");
77
78 b.Property<DateTime?>("DeletedOn")
79 .HasColumnType("timestamp without time zone");
80
81 b.Property<int>("FacilityId")
82 .HasColumnType("integer");
83
84 b.Property<string>("Name")
85 .IsRequired()
86 .HasColumnType("text");
87
88 b.Property<string>("Title")
89 .HasColumnType("text");
90
91 b.HasKey("Id");
92
93 b.HasIndex("FacilityId");
94
95 b.ToTable("HealthcareWorkers");
96 });
97
98 modelBuilder.Entity("FarmatikoData.Models.Medicine", b =>
99 {
100 b.Property<int>("Id")
101 .ValueGeneratedOnAdd()
102 .HasColumnType("integer")
103 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
104
105 b.Property<DateTime>("CreatedOn")
106 .HasColumnType("timestamp without time zone");
107
108 b.Property<DateTime?>("DeletedOn")
109 .HasColumnType("timestamp without time zone");
110
111 b.Property<string>("Form")
112 .HasColumnType("text");
113
114 b.Property<string>("Manufacturer")
115 .HasColumnType("text");
116
117 b.Property<string>("Name")
118 .HasColumnType("text");
119
120 b.Property<string>("Packaging")
121 .HasColumnType("text");
122
123 b.Property<float>("Price")
124 .HasColumnType("real");
125
126 b.Property<string>("Strength")
127 .HasColumnType("text");
128
129 b.Property<string>("WayOfIssuing")
130 .HasColumnType("text");
131
132 b.HasKey("Id");
133
134 b.ToTable("Medicines");
135 });
136
137 modelBuilder.Entity("FarmatikoData.Models.MedicineList", b =>
138 {
139 b.Property<int>("Id")
140 .ValueGeneratedOnAdd()
141 .HasColumnType("integer")
142 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
143
144 b.Property<DateTime>("CreatedOn")
145 .HasColumnType("timestamp without time zone");
146
147 b.Property<DateTime?>("DeletedOn")
148 .HasColumnType("timestamp without time zone");
149
150 b.Property<bool>("HasMedicine")
151 .HasColumnType("boolean");
152
153 b.Property<int?>("MedicineId")
154 .HasColumnType("integer");
155
156 b.Property<int?>("PharmacyHeadId")
157 .HasColumnType("integer");
158
159 b.HasKey("Id");
160
161 b.HasIndex("MedicineId");
162
163 b.HasIndex("PharmacyHeadId");
164
165 b.ToTable("MedicineLists");
166 });
167
168 modelBuilder.Entity("FarmatikoData.Models.Pandemic", b =>
169 {
170 b.Property<int>("Id")
171 .ValueGeneratedOnAdd()
172 .HasColumnType("integer")
173 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
174
175 b.Property<long>("ActiveGlobal")
176 .HasColumnType("bigint");
177
178 b.Property<int>("ActiveMK")
179 .HasColumnType("integer");
180
181 b.Property<DateTime>("CreatedOn")
182 .HasColumnType("timestamp without time zone");
183
184 b.Property<long>("DeathsGlobal")
185 .HasColumnType("bigint");
186
187 b.Property<int>("DeathsMK")
188 .HasColumnType("integer");
189
190 b.Property<DateTime?>("DeletedOn")
191 .HasColumnType("timestamp without time zone");
192
193 b.Property<string>("Name")
194 .HasColumnType("text");
195
196 b.Property<int>("NewMK")
197 .HasColumnType("integer");
198
199 b.Property<long>("TotalGlobal")
200 .HasColumnType("bigint");
201
202 b.Property<int>("TotalMK")
203 .HasColumnType("integer");
204
205 b.HasKey("Id");
206
207 b.ToTable("Pandemics");
208 });
209
210 modelBuilder.Entity("FarmatikoData.Models.Pharmacy", b =>
211 {
212 b.Property<int>("Id")
213 .ValueGeneratedOnAdd()
214 .HasColumnType("integer")
215 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
216
217 b.Property<string>("Address")
218 .HasColumnType("text");
219
220 b.Property<DateTime>("CreatedOn")
221 .HasColumnType("timestamp without time zone");
222
223 b.Property<DateTime?>("DeletedOn")
224 .HasColumnType("timestamp without time zone");
225
226 b.Property<string>("Location")
227 .HasColumnType("text");
228
229 b.Property<string>("Name")
230 .HasColumnType("text");
231
232 b.Property<int?>("PharmacyHeadId")
233 .HasColumnType("integer");
234
235 b.Property<bool>("WorkAllTime")
236 .HasColumnType("boolean");
237
238 b.HasKey("Id");
239
240 b.HasIndex("PharmacyHeadId");
241
242 b.ToTable("Pharmacies");
243 });
244
245 modelBuilder.Entity("FarmatikoData.Models.PharmacyHead", b =>
246 {
247 b.Property<int>("Id")
248 .ValueGeneratedOnAdd()
249 .HasColumnType("integer")
250 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
251
252 b.Property<DateTime>("CreatedOn")
253 .HasColumnType("timestamp without time zone");
254
255 b.Property<DateTime?>("DeletedOn")
256 .HasColumnType("timestamp without time zone");
257
258 b.Property<string>("Email")
259 .HasColumnType("text");
260
261 b.Property<string>("Name")
262 .HasColumnType("text");
263
264 b.Property<string>("Password")
265 .HasColumnType("text");
266
267 b.Property<int?>("PharmacyId")
268 .HasColumnType("integer");
269
270 b.Property<int?>("PharmacyMedicinesId")
271 .HasColumnType("integer");
272
273 b.HasKey("Id");
274
275 b.HasIndex("PharmacyId");
276
277 b.HasIndex("PharmacyMedicinesId");
278
279 b.ToTable("PharmacyHeads");
280 });
281
282 modelBuilder.Entity("FarmatikoData.Models.HealthcareWorkers", b =>
283 {
284 b.HasOne("FarmatikoData.Models.HealthFacilities", "Facility")
285 .WithMany()
286 .HasForeignKey("FacilityId")
287 .OnDelete(DeleteBehavior.Cascade)
288 .IsRequired();
289 });
290
291 modelBuilder.Entity("FarmatikoData.Models.MedicineList", b =>
292 {
293 b.HasOne("FarmatikoData.Models.Medicine", "Medicine")
294 .WithMany()
295 .HasForeignKey("MedicineId");
296
297 b.HasOne("FarmatikoData.Models.PharmacyHead", null)
298 .WithMany("MedicineLists")
299 .HasForeignKey("PharmacyHeadId");
300 });
301
302 modelBuilder.Entity("FarmatikoData.Models.Pharmacy", b =>
303 {
304 b.HasOne("FarmatikoData.Models.PharmacyHead", null)
305 .WithMany("PharmaciesList")
306 .HasForeignKey("PharmacyHeadId");
307 });
308
309 modelBuilder.Entity("FarmatikoData.Models.PharmacyHead", b =>
310 {
311 b.HasOne("FarmatikoData.Models.Pharmacy", "Pharmacy")
312 .WithMany()
313 .HasForeignKey("PharmacyId");
314
315 b.HasOne("FarmatikoData.Models.MedicineList", "PharmacyMedicines")
316 .WithMany()
317 .HasForeignKey("PharmacyMedicinesId");
318 });
319#pragma warning restore 612, 618
320 }
321 }
322}
Note: See TracBrowser for help on using the repository browser.