- Timestamp:
- 11/14/20 12:27:30 (4 years ago)
- Branches:
- master
- Children:
- 68454c6
- Parents:
- ad60966
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
FarmatikoData/Migrations/FarmatikoDataContextModelSnapshot.cs
rad60966 r1db5673 121 121 .HasColumnType("text"); 122 122 123 b.Property<int?>("PharmacyHeadId") 124 .HasColumnType("integer"); 125 123 126 b.Property<float>("Price") 124 127 .HasColumnType("real"); … … 134 137 b.HasKey("Id"); 135 138 139 b.HasIndex("PharmacyHeadId"); 140 136 141 b.ToTable("Medicines"); 137 });138 139 modelBuilder.Entity("FarmatikoData.Models.MedicineList", b =>140 {141 b.Property<int>("Id")142 .ValueGeneratedOnAdd()143 .HasColumnType("integer")144 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);145 146 b.Property<DateTime>("CreatedOn")147 .HasColumnType("timestamp without time zone");148 149 b.Property<DateTime?>("DeletedOn")150 .HasColumnType("timestamp without time zone");151 152 b.Property<bool>("HasMedicine")153 .HasColumnType("boolean");154 155 b.Property<int>("MedicineId")156 .HasColumnType("integer");157 158 b.Property<int?>("PharmacyHeadId")159 .HasColumnType("integer");160 161 b.HasKey("Id");162 163 b.HasIndex("MedicineId");164 165 b.HasIndex("PharmacyHeadId");166 167 b.ToTable("MedicineList");168 142 }); 169 143 … … 236 210 .HasColumnType("text"); 237 211 238 b.Property<int ?>("PharmacyHeadId")212 b.Property<int>("PheadId") 239 213 .HasColumnType("integer"); 240 214 … … 244 218 b.HasKey("Id"); 245 219 246 b.HasIndex("Ph armacyHeadId");220 b.HasIndex("PheadId"); 247 221 248 222 b.ToTable("Pharmacies"); … … 277 251 278 252 b.ToTable("PharmacyHeads"); 253 }); 254 255 modelBuilder.Entity("FarmatikoData.Models.PharmacyHeadMedicine", b => 256 { 257 b.Property<int>("PheadId") 258 .HasColumnType("integer"); 259 260 b.Property<int>("MedicineId") 261 .HasColumnType("integer"); 262 263 b.Property<DateTime>("CreatedOn") 264 .HasColumnType("timestamp without time zone"); 265 266 b.Property<DateTime?>("DeletedOn") 267 .HasColumnType("timestamp without time zone"); 268 269 b.Property<int>("Id") 270 .HasColumnType("integer"); 271 272 b.HasKey("PheadId", "MedicineId"); 273 274 b.HasIndex("MedicineId"); 275 276 b.ToTable("PharmacyHeadMedicines"); 279 277 }); 280 278 … … 346 344 }); 347 345 348 modelBuilder.Entity("FarmatikoData.Models.MedicineList", b => 346 modelBuilder.Entity("FarmatikoData.Models.Medicine", b => 347 { 348 b.HasOne("FarmatikoData.Models.PharmacyHead", null) 349 .WithMany("MedicineList") 350 .HasForeignKey("PharmacyHeadId"); 351 }); 352 353 modelBuilder.Entity("FarmatikoData.Models.Pharmacy", b => 354 { 355 b.HasOne("FarmatikoData.Models.PharmacyHead", "PHead") 356 .WithMany("PharmaciesList") 357 .HasForeignKey("PheadId") 358 .OnDelete(DeleteBehavior.Cascade) 359 .IsRequired(); 360 }); 361 362 modelBuilder.Entity("FarmatikoData.Models.PharmacyHeadMedicine", b => 349 363 { 350 364 b.HasOne("FarmatikoData.Models.Medicine", "Medicine") 351 .WithMany( )365 .WithMany("MedicineList") 352 366 .HasForeignKey("MedicineId") 353 367 .OnDelete(DeleteBehavior.Cascade) 354 368 .IsRequired(); 355 369 356 b.HasOne("FarmatikoData.Models.PharmacyHead", null) 357 .WithMany("MedicineLists") 358 .HasForeignKey("PharmacyHeadId"); 359 }); 360 361 modelBuilder.Entity("FarmatikoData.Models.Pharmacy", b => 362 { 363 b.HasOne("FarmatikoData.Models.PharmacyHead", null) 364 .WithMany("PharmaciesList") 365 .HasForeignKey("PharmacyHeadId"); 370 b.HasOne("FarmatikoData.Models.PharmacyHead", "Head") 371 .WithMany("PHMedicineList") 372 .HasForeignKey("PheadId") 373 .OnDelete(DeleteBehavior.Cascade) 374 .IsRequired(); 366 375 }); 367 376
Note:
See TracChangeset
for help on using the changeset viewer.