- Timestamp:
- 11/05/20 06:57:35 (4 years ago)
- Branches:
- master
- Children:
- afc9a9a
- Parents:
- 1f4846d
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
FarmatikoData/Migrations/20201105055526_NewMigration.Designer.cs
r1f4846d rd23bf72 11 11 { 12 12 [DbContext(typeof(FarmatikoDataContext))] 13 [Migration("2020 0722131856_Initial migration")]14 partial class Initialmigration13 [Migration("20201105055526_NewMigration")] 14 partial class NewMigration 15 15 { 16 16 protected override void BuildTargetModel(ModelBuilder modelBuilder) … … 22 22 .HasAnnotation("Relational:MaxIdentifierLength", 63); 23 23 24 modelBuilder.Entity("FarmatikoData.Models.HealthFacilit ies", b =>24 modelBuilder.Entity("FarmatikoData.Models.HealthFacility", b => 25 25 { 26 26 b.Property<int>("Id") … … 36 36 .HasColumnType("timestamp without time zone"); 37 37 38 b.Property<DateTime >("DeletedOn")38 b.Property<DateTime?>("DeletedOn") 39 39 .HasColumnType("timestamp without time zone"); 40 40 … … 62 62 }); 63 63 64 modelBuilder.Entity("FarmatikoData.Models.HealthcareWorker s", b =>64 modelBuilder.Entity("FarmatikoData.Models.HealthcareWorker", b => 65 65 { 66 66 b.Property<int>("Id") … … 76 76 .HasColumnType("timestamp without time zone"); 77 77 78 b.Property<DateTime >("DeletedOn")78 b.Property<DateTime?>("DeletedOn") 79 79 .HasColumnType("timestamp without time zone"); 80 80 … … 106 106 .HasColumnType("timestamp without time zone"); 107 107 108 b.Property<DateTime >("DeletedOn")108 b.Property<DateTime?>("DeletedOn") 109 109 .HasColumnType("timestamp without time zone"); 110 110 … … 113 113 114 114 b.Property<string>("Manufacturer") 115 .HasColumnType("text"); 116 117 b.Property<int?>("MedicineListId") 118 .HasColumnType("integer"); 119 120 b.Property<string>("Name") 115 .IsRequired() 116 .HasColumnType("text"); 117 118 b.Property<string>("Name") 119 .IsRequired() 121 120 .HasColumnType("text"); 122 121 … … 128 127 129 128 b.Property<string>("Strength") 129 .IsRequired() 130 130 .HasColumnType("text"); 131 131 132 132 b.Property<string>("WayOfIssuing") 133 .HasColumnType("text"); 134 135 b.HasKey("Id"); 136 137 b.HasIndex("MedicineListId"); 133 .IsRequired() 134 .HasColumnType("text"); 135 136 b.HasKey("Id"); 138 137 139 138 b.ToTable("Medicines"); … … 150 149 .HasColumnType("timestamp without time zone"); 151 150 152 b.Property<DateTime >("DeletedOn")151 b.Property<DateTime?>("DeletedOn") 153 152 .HasColumnType("timestamp without time zone"); 154 153 … … 156 155 .HasColumnType("boolean"); 157 156 158 b.Property<int ?>("MedicinesId")157 b.Property<int>("MedicineId") 159 158 .HasColumnType("integer"); 160 159 … … 164 163 b.HasKey("Id"); 165 164 166 b.HasIndex("Medicine sId");165 b.HasIndex("MedicineId"); 167 166 168 167 b.HasIndex("PharmacyHeadId"); … … 178 177 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); 179 178 180 b.Property< int>("ActiveGlobal")181 .HasColumnType(" integer");179 b.Property<long>("ActiveGlobal") 180 .HasColumnType("bigint"); 182 181 183 182 b.Property<int>("ActiveMK") … … 187 186 .HasColumnType("timestamp without time zone"); 188 187 189 b.Property< int>("DeathsGlobal")190 .HasColumnType(" integer");188 b.Property<long>("DeathsGlobal") 189 .HasColumnType("bigint"); 191 190 192 191 b.Property<int>("DeathsMK") 193 192 .HasColumnType("integer"); 194 193 195 b.Property<DateTime>("DeletedOn") 196 .HasColumnType("timestamp without time zone"); 197 198 b.Property<string>("Name") 194 b.Property<DateTime?>("DeletedOn") 195 .HasColumnType("timestamp without time zone"); 196 197 b.Property<string>("Name") 198 .IsRequired() 199 199 .HasColumnType("text"); 200 200 … … 202 202 .HasColumnType("integer"); 203 203 204 b.Property< int>("TotalGlobal")205 .HasColumnType(" integer");204 b.Property<long>("TotalGlobal") 205 .HasColumnType("bigint"); 206 206 207 207 b.Property<int>("TotalMK") … … 221 221 222 222 b.Property<string>("Address") 223 .HasColumnType("text"); 224 225 b.Property<DateTime>("CreatedOn") 226 .HasColumnType("timestamp without time zone"); 227 228 b.Property<DateTime>("DeletedOn") 223 .IsRequired() 224 .HasColumnType("text"); 225 226 b.Property<DateTime>("CreatedOn") 227 .HasColumnType("timestamp without time zone"); 228 229 b.Property<DateTime?>("DeletedOn") 229 230 .HasColumnType("timestamp without time zone"); 230 231 231 232 b.Property<string>("Location") 232 .HasColumnType("text"); 233 234 b.Property<string>("Name") 233 .IsRequired() 234 .HasColumnType("text"); 235 236 b.Property<string>("Name") 237 .IsRequired() 235 238 .HasColumnType("text"); 236 239 … … 258 261 .HasColumnType("timestamp without time zone"); 259 262 260 b.Property<DateTime >("DeletedOn")263 b.Property<DateTime?>("DeletedOn") 261 264 .HasColumnType("timestamp without time zone"); 262 265 263 266 b.Property<string>("Email") 264 .HasColumnType("text"); 265 266 b.Property<string>("Name") 267 .IsRequired() 268 .HasColumnType("text"); 269 270 b.Property<string>("Name") 271 .IsRequired() 267 272 .HasColumnType("text"); 268 273 269 274 b.Property<string>("Password") 270 .HasColumnType("text"); 271 272 b.Property<int?>("PharmacyId") 273 .HasColumnType("integer"); 274 275 b.Property<int?>("PharmacyMedicinesId") 276 .HasColumnType("integer"); 277 278 b.HasKey("Id"); 275 .IsRequired() 276 .HasColumnType("text"); 277 278 b.HasKey("Id"); 279 280 b.ToTable("PharmacyHeads"); 281 }); 282 283 modelBuilder.Entity("FarmatikoData.Models.RequestPharmacyHead", b => 284 { 285 b.Property<int>("Id") 286 .ValueGeneratedOnAdd() 287 .HasColumnType("integer") 288 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); 289 290 b.Property<DateTime>("CreatedOn") 291 .HasColumnType("timestamp without time zone"); 292 293 b.Property<DateTime?>("DeletedOn") 294 .HasColumnType("timestamp without time zone"); 295 296 b.Property<int>("HeadId") 297 .HasColumnType("integer"); 298 299 b.Property<int>("PharmacyId") 300 .HasColumnType("integer"); 301 302 b.HasKey("Id"); 303 304 b.HasIndex("HeadId"); 279 305 280 306 b.HasIndex("PharmacyId"); 281 307 282 b.HasIndex("PharmacyMedicinesId"); 283 284 b.ToTable("PharmacyHeads"); 285 }); 286 287 modelBuilder.Entity("FarmatikoData.Models.HealthcareWorkers", b => 288 { 289 b.HasOne("FarmatikoData.Models.HealthFacilities", "Facility") 308 b.ToTable("PHRequests"); 309 }); 310 311 modelBuilder.Entity("FarmatikoData.Models.User", b => 312 { 313 b.Property<int>("Id") 314 .ValueGeneratedOnAdd() 315 .HasColumnType("integer") 316 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); 317 318 b.Property<DateTime>("CreatedOn") 319 .HasColumnType("timestamp without time zone"); 320 321 b.Property<DateTime?>("DeletedOn") 322 .HasColumnType("timestamp without time zone"); 323 324 b.Property<string>("Email") 325 .HasColumnType("text"); 326 327 b.Property<string>("Name") 328 .HasColumnType("text"); 329 330 b.Property<string>("Password") 331 .HasColumnType("text"); 332 333 b.Property<int>("UserRole") 334 .HasColumnType("integer"); 335 336 b.HasKey("Id"); 337 338 b.ToTable("Users"); 339 }); 340 341 modelBuilder.Entity("FarmatikoData.Models.HealthcareWorker", b => 342 { 343 b.HasOne("FarmatikoData.Models.HealthFacility", "Facility") 290 344 .WithMany() 291 345 .HasForeignKey("FacilityId") … … 294 348 }); 295 349 296 modelBuilder.Entity("FarmatikoData.Models.Medicine", b =>297 {298 b.HasOne("FarmatikoData.Models.MedicineList", null)299 .WithMany("MedicinesList")300 .HasForeignKey("MedicineListId");301 });302 303 350 modelBuilder.Entity("FarmatikoData.Models.MedicineList", b => 304 351 { 305 b.HasOne("FarmatikoData.Models.Medicine", "Medicine s")352 b.HasOne("FarmatikoData.Models.Medicine", "Medicine") 306 353 .WithMany() 307 .HasForeignKey("MedicinesId"); 354 .HasForeignKey("MedicineId") 355 .OnDelete(DeleteBehavior.Cascade) 356 .IsRequired(); 308 357 309 358 b.HasOne("FarmatikoData.Models.PharmacyHead", null) … … 319 368 }); 320 369 321 modelBuilder.Entity("FarmatikoData.Models.PharmacyHead", b => 322 { 370 modelBuilder.Entity("FarmatikoData.Models.RequestPharmacyHead", b => 371 { 372 b.HasOne("FarmatikoData.Models.PharmacyHead", "Head") 373 .WithMany() 374 .HasForeignKey("HeadId") 375 .OnDelete(DeleteBehavior.Cascade) 376 .IsRequired(); 377 323 378 b.HasOne("FarmatikoData.Models.Pharmacy", "Pharmacy") 324 379 .WithMany() 325 .HasForeignKey("PharmacyId"); 326 327 b.HasOne("FarmatikoData.Models.MedicineList", "PharmacyMedicines") 328 .WithMany() 329 .HasForeignKey("PharmacyMedicinesId"); 380 .HasForeignKey("PharmacyId") 381 .OnDelete(DeleteBehavior.Cascade) 382 .IsRequired(); 330 383 }); 331 384 #pragma warning restore 612, 618
Note:
See TracChangeset
for help on using the changeset viewer.