- Timestamp:
- 01/26/21 10:33:09 (4 years ago)
- Branches:
- master
- Children:
- 7d80751
- Parents:
- 8e74e2f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
FarmatikoData/Migrations/FarmatikoDataContextModelSnapshot.cs
r8e74e2f rdb484c9 122 122 .HasColumnType("text"); 123 123 124 b.Property<int?>("PharmacyHeadId")125 .HasColumnType("integer");126 127 124 b.Property<float>("Price") 128 125 .HasColumnType("real"); … … 138 135 b.HasKey("Id"); 139 136 140 b.HasIndex("PharmacyHeadId");141 142 137 b.ToTable("Medicines"); 143 138 }); … … 212 207 .HasColumnType("text"); 213 208 209 b.Property<int?>("PharmacyHeadId") 210 .HasColumnType("integer"); 211 214 212 b.Property<int>("PheadId") 215 213 .HasColumnType("integer"); … … 220 218 b.HasKey("Id"); 221 219 222 b.HasIndex("Ph eadId");220 b.HasIndex("PharmacyHeadId"); 223 221 224 222 b.ToTable("Pharmacies"); … … 251 249 .HasColumnType("text"); 252 250 253 b.HasKey("Id"); 251 b.Property<int?>("UserId") 252 .HasColumnType("integer"); 253 254 b.HasKey("Id"); 255 256 b.HasIndex("UserId"); 254 257 255 258 b.ToTable("PharmacyHeads"); … … 258 261 modelBuilder.Entity("FarmatikoData.Models.PharmacyHeadMedicine", b => 259 262 { 263 b.Property<int>("Id") 264 .ValueGeneratedOnAdd() 265 .HasColumnType("integer") 266 .HasAnnotation("Npgsql:IdentitySequenceOptions", "'1', '1', '', '', 'False', '1'") 267 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.SerialColumn); 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 275 b.Property<int?>("HeadId") 276 .HasColumnType("integer"); 277 278 b.Property<int>("MedicineId") 279 .HasColumnType("integer"); 280 260 281 b.Property<int>("PheadId") 261 282 .HasColumnType("integer"); 262 283 263 b.Property<int>("MedicineId") 264 .HasColumnType("integer"); 265 266 b.Property<DateTime>("CreatedOn") 267 .HasColumnType("timestamp without time zone"); 268 269 b.Property<DateTime?>("DeletedOn") 270 .HasColumnType("timestamp without time zone"); 271 272 b.Property<int>("Id") 273 .HasColumnType("integer") 274 .HasAnnotation("Npgsql:IdentitySequenceOptions", "'1', '1', '', '', 'False', '1'"); 275 276 b.HasKey("PheadId", "MedicineId"); 284 b.HasKey("Id"); 285 286 b.HasIndex("HeadId"); 277 287 278 288 b.HasIndex("MedicineId"); … … 315 325 .ValueGeneratedOnAdd() 316 326 .HasColumnType("integer") 317 .HasAnnotation("Npgsql:IdentitySequenceOptions", "'1', '1', '', '', 'False', '1'")318 327 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.SerialColumn); 319 328 … … 353 362 }); 354 363 355 modelBuilder.Entity("FarmatikoData.Models. Medicine", b =>356 { 357 b.HasOne("FarmatikoData.Models.PharmacyHead", null)358 .WithMany(" MedicineList")364 modelBuilder.Entity("FarmatikoData.Models.Pharmacy", b => 365 { 366 b.HasOne("FarmatikoData.Models.PharmacyHead", "PharmacyHead") 367 .WithMany("Pharmacies") 359 368 .HasForeignKey("PharmacyHeadId"); 360 369 }); 361 370 362 modelBuilder.Entity("FarmatikoData.Models.Pharmacy", b => 363 { 364 b.HasOne("FarmatikoData.Models.PharmacyHead", "PHead") 365 .WithMany("PharmaciesList") 366 .HasForeignKey("PheadId") 367 .OnDelete(DeleteBehavior.Cascade) 368 .IsRequired(); 371 modelBuilder.Entity("FarmatikoData.Models.PharmacyHead", b => 372 { 373 b.HasOne("FarmatikoData.Models.User", "User") 374 .WithMany() 375 .HasForeignKey("UserId"); 369 376 }); 370 377 371 378 modelBuilder.Entity("FarmatikoData.Models.PharmacyHeadMedicine", b => 372 379 { 380 b.HasOne("FarmatikoData.Models.PharmacyHead", "Head") 381 .WithMany("Medicines") 382 .HasForeignKey("HeadId"); 383 373 384 b.HasOne("FarmatikoData.Models.Medicine", "Medicine") 374 .WithMany("Medicine List")385 .WithMany("Medicines") 375 386 .HasForeignKey("MedicineId") 376 .OnDelete(DeleteBehavior.Cascade)377 .IsRequired();378 379 b.HasOne("FarmatikoData.Models.PharmacyHead", "Head")380 .WithMany("PHMedicineList")381 .HasForeignKey("PheadId")382 387 .OnDelete(DeleteBehavior.Cascade) 383 388 .IsRequired();
Note:
See TracChangeset
for help on using the changeset viewer.