source: FarmatikoData/Migrations/FarmatikoDataContextModelSnapshot.cs@ 63d885e

Last change on this file since 63d885e 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.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
18 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn)
19 .HasAnnotation("ProductVersion", "3.1.6")
20 .HasAnnotation("Relational:MaxIdentifierLength", 63);
21
22 modelBuilder.Entity("FarmatikoData.Models.HealthFacilities", b =>
23 {
24 b.Property<int>("Id")
25 .ValueGeneratedOnAdd()
26 .HasColumnType("integer")
27 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
28
29 b.Property<string>("Address")
30 .IsRequired()
31 .HasColumnType("text");
32
33 b.Property<DateTime>("CreatedOn")
34 .HasColumnType("timestamp without time zone");
35
36 b.Property<DateTime?>("DeletedOn")
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
62 modelBuilder.Entity("FarmatikoData.Models.HealthcareWorkers", b =>
63 {
64 b.Property<int>("Id")
65 .ValueGeneratedOnAdd()
66 .HasColumnType("integer")
67 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
68
69 b.Property<string>("Branch")
70 .IsRequired()
71 .HasColumnType("text");
72
73 b.Property<DateTime>("CreatedOn")
74 .HasColumnType("timestamp without time zone");
75
76 b.Property<DateTime?>("DeletedOn")
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")
101 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
102
103 b.Property<DateTime>("CreatedOn")
104 .HasColumnType("timestamp without time zone");
105
106 b.Property<DateTime?>("DeletedOn")
107 .HasColumnType("timestamp without time zone");
108
109 b.Property<string>("Form")
110 .HasColumnType("text");
111
112 b.Property<string>("Manufacturer")
113 .HasColumnType("text");
114
115 b.Property<string>("Name")
116 .HasColumnType("text");
117
118 b.Property<string>("Packaging")
119 .HasColumnType("text");
120
121 b.Property<float>("Price")
122 .HasColumnType("real");
123
124 b.Property<string>("Strength")
125 .HasColumnType("text");
126
127 b.Property<string>("WayOfIssuing")
128 .HasColumnType("text");
129
130 b.HasKey("Id");
131
132 b.ToTable("Medicines");
133 });
134
135 modelBuilder.Entity("FarmatikoData.Models.MedicineList", b =>
136 {
137 b.Property<int>("Id")
138 .ValueGeneratedOnAdd()
139 .HasColumnType("integer")
140 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
141
142 b.Property<DateTime>("CreatedOn")
143 .HasColumnType("timestamp without time zone");
144
145 b.Property<DateTime?>("DeletedOn")
146 .HasColumnType("timestamp without time zone");
147
148 b.Property<bool>("HasMedicine")
149 .HasColumnType("boolean");
150
151 b.Property<int?>("MedicineId")
152 .HasColumnType("integer");
153
154 b.Property<int?>("PharmacyHeadId")
155 .HasColumnType("integer");
156
157 b.HasKey("Id");
158
159 b.HasIndex("MedicineId");
160
161 b.HasIndex("PharmacyHeadId");
162
163 b.ToTable("MedicineLists");
164 });
165
166 modelBuilder.Entity("FarmatikoData.Models.Pandemic", b =>
167 {
168 b.Property<int>("Id")
169 .ValueGeneratedOnAdd()
170 .HasColumnType("integer")
171 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
172
173 b.Property<long>("ActiveGlobal")
174 .HasColumnType("bigint");
175
176 b.Property<int>("ActiveMK")
177 .HasColumnType("integer");
178
179 b.Property<DateTime>("CreatedOn")
180 .HasColumnType("timestamp without time zone");
181
182 b.Property<long>("DeathsGlobal")
183 .HasColumnType("bigint");
184
185 b.Property<int>("DeathsMK")
186 .HasColumnType("integer");
187
188 b.Property<DateTime?>("DeletedOn")
189 .HasColumnType("timestamp without time zone");
190
191 b.Property<string>("Name")
192 .HasColumnType("text");
193
194 b.Property<int>("NewMK")
195 .HasColumnType("integer");
196
197 b.Property<long>("TotalGlobal")
198 .HasColumnType("bigint");
199
200 b.Property<int>("TotalMK")
201 .HasColumnType("integer");
202
203 b.HasKey("Id");
204
205 b.ToTable("Pandemics");
206 });
207
208 modelBuilder.Entity("FarmatikoData.Models.Pharmacy", b =>
209 {
210 b.Property<int>("Id")
211 .ValueGeneratedOnAdd()
212 .HasColumnType("integer")
213 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
214
215 b.Property<string>("Address")
216 .HasColumnType("text");
217
218 b.Property<DateTime>("CreatedOn")
219 .HasColumnType("timestamp without time zone");
220
221 b.Property<DateTime?>("DeletedOn")
222 .HasColumnType("timestamp without time zone");
223
224 b.Property<string>("Location")
225 .HasColumnType("text");
226
227 b.Property<string>("Name")
228 .HasColumnType("text");
229
230 b.Property<int?>("PharmacyHeadId")
231 .HasColumnType("integer");
232
233 b.Property<bool>("WorkAllTime")
234 .HasColumnType("boolean");
235
236 b.HasKey("Id");
237
238 b.HasIndex("PharmacyHeadId");
239
240 b.ToTable("Pharmacies");
241 });
242
243 modelBuilder.Entity("FarmatikoData.Models.PharmacyHead", b =>
244 {
245 b.Property<int>("Id")
246 .ValueGeneratedOnAdd()
247 .HasColumnType("integer")
248 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
249
250 b.Property<DateTime>("CreatedOn")
251 .HasColumnType("timestamp without time zone");
252
253 b.Property<DateTime?>("DeletedOn")
254 .HasColumnType("timestamp without time zone");
255
256 b.Property<string>("Email")
257 .HasColumnType("text");
258
259 b.Property<string>("Name")
260 .HasColumnType("text");
261
262 b.Property<string>("Password")
263 .HasColumnType("text");
264
265 b.Property<int?>("PharmacyId")
266 .HasColumnType("integer");
267
268 b.Property<int?>("PharmacyMedicinesId")
269 .HasColumnType("integer");
270
271 b.HasKey("Id");
272
273 b.HasIndex("PharmacyId");
274
275 b.HasIndex("PharmacyMedicinesId");
276
277 b.ToTable("PharmacyHeads");
278 });
279
280 modelBuilder.Entity("FarmatikoData.Models.HealthcareWorkers", b =>
281 {
282 b.HasOne("FarmatikoData.Models.HealthFacilities", "Facility")
283 .WithMany()
284 .HasForeignKey("FacilityId")
285 .OnDelete(DeleteBehavior.Cascade)
286 .IsRequired();
287 });
288
289 modelBuilder.Entity("FarmatikoData.Models.MedicineList", b =>
290 {
291 b.HasOne("FarmatikoData.Models.Medicine", "Medicine")
292 .WithMany()
293 .HasForeignKey("MedicineId");
294
295 b.HasOne("FarmatikoData.Models.PharmacyHead", null)
296 .WithMany("MedicineLists")
297 .HasForeignKey("PharmacyHeadId");
298 });
299
300 modelBuilder.Entity("FarmatikoData.Models.Pharmacy", b =>
301 {
302 b.HasOne("FarmatikoData.Models.PharmacyHead", null)
303 .WithMany("PharmaciesList")
304 .HasForeignKey("PharmacyHeadId");
305 });
306
307 modelBuilder.Entity("FarmatikoData.Models.PharmacyHead", b =>
308 {
309 b.HasOne("FarmatikoData.Models.Pharmacy", "Pharmacy")
310 .WithMany()
311 .HasForeignKey("PharmacyId");
312
313 b.HasOne("FarmatikoData.Models.MedicineList", "PharmacyMedicines")
314 .WithMany()
315 .HasForeignKey("PharmacyMedicinesId");
316 });
317#pragma warning restore 612, 618
318 }
319 }
320}
Note: See TracBrowser for help on using the repository browser.