- Timestamp:
- 11/05/20 06:57:35 (3 years ago)
- Branches:
- master
- Children:
- afc9a9a
- Parents:
- 1f4846d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
FarmatikoData/Migrations/FarmatikoDataContextModelSnapshot.cs
r1f4846d rd23bf72 20 20 .HasAnnotation("Relational:MaxIdentifierLength", 63); 21 21 22 modelBuilder.Entity("FarmatikoData.Models.HealthFacilit ies", b =>22 modelBuilder.Entity("FarmatikoData.Models.HealthFacility", b => 23 23 { 24 24 b.Property<int>("Id") … … 60 60 }); 61 61 62 modelBuilder.Entity("FarmatikoData.Models.HealthcareWorker s", b =>62 modelBuilder.Entity("FarmatikoData.Models.HealthcareWorker", b => 63 63 { 64 64 b.Property<int>("Id") … … 111 111 112 112 b.Property<string>("Manufacturer") 113 .HasColumnType("text"); 114 115 b.Property<string>("Name") 113 .IsRequired() 114 .HasColumnType("text"); 115 116 b.Property<string>("Name") 117 .IsRequired() 116 118 .HasColumnType("text"); 117 119 … … 123 125 124 126 b.Property<string>("Strength") 127 .IsRequired() 125 128 .HasColumnType("text"); 126 129 127 130 b.Property<string>("WayOfIssuing") 131 .IsRequired() 128 132 .HasColumnType("text"); 129 133 … … 149 153 .HasColumnType("boolean"); 150 154 151 b.Property<int ?>("MedicineId")155 b.Property<int>("MedicineId") 152 156 .HasColumnType("integer"); 153 157 … … 190 194 191 195 b.Property<string>("Name") 196 .IsRequired() 192 197 .HasColumnType("text"); 193 198 … … 214 219 215 220 b.Property<string>("Address") 221 .IsRequired() 216 222 .HasColumnType("text"); 217 223 … … 223 229 224 230 b.Property<string>("Location") 225 .HasColumnType("text"); 226 227 b.Property<string>("Name") 231 .IsRequired() 232 .HasColumnType("text"); 233 234 b.Property<string>("Name") 235 .IsRequired() 228 236 .HasColumnType("text"); 229 237 … … 255 263 256 264 b.Property<string>("Email") 257 .HasColumnType("text"); 258 259 b.Property<string>("Name") 265 .IsRequired() 266 .HasColumnType("text"); 267 268 b.Property<string>("Name") 269 .IsRequired() 260 270 .HasColumnType("text"); 261 271 262 272 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"); 273 .IsRequired() 274 .HasColumnType("text"); 275 276 b.HasKey("Id"); 277 278 b.ToTable("PharmacyHeads"); 279 }); 280 281 modelBuilder.Entity("FarmatikoData.Models.RequestPharmacyHead", b => 282 { 283 b.Property<int>("Id") 284 .ValueGeneratedOnAdd() 285 .HasColumnType("integer") 286 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); 287 288 b.Property<DateTime>("CreatedOn") 289 .HasColumnType("timestamp without time zone"); 290 291 b.Property<DateTime?>("DeletedOn") 292 .HasColumnType("timestamp without time zone"); 293 294 b.Property<int>("HeadId") 295 .HasColumnType("integer"); 296 297 b.Property<int>("PharmacyId") 298 .HasColumnType("integer"); 299 300 b.HasKey("Id"); 301 302 b.HasIndex("HeadId"); 272 303 273 304 b.HasIndex("PharmacyId"); 274 305 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") 306 b.ToTable("PHRequests"); 307 }); 308 309 modelBuilder.Entity("FarmatikoData.Models.User", b => 310 { 311 b.Property<int>("Id") 312 .ValueGeneratedOnAdd() 313 .HasColumnType("integer") 314 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); 315 316 b.Property<DateTime>("CreatedOn") 317 .HasColumnType("timestamp without time zone"); 318 319 b.Property<DateTime?>("DeletedOn") 320 .HasColumnType("timestamp without time zone"); 321 322 b.Property<string>("Email") 323 .HasColumnType("text"); 324 325 b.Property<string>("Name") 326 .HasColumnType("text"); 327 328 b.Property<string>("Password") 329 .HasColumnType("text"); 330 331 b.Property<int>("UserRole") 332 .HasColumnType("integer"); 333 334 b.HasKey("Id"); 335 336 b.ToTable("Users"); 337 }); 338 339 modelBuilder.Entity("FarmatikoData.Models.HealthcareWorker", b => 340 { 341 b.HasOne("FarmatikoData.Models.HealthFacility", "Facility") 283 342 .WithMany() 284 343 .HasForeignKey("FacilityId") … … 291 350 b.HasOne("FarmatikoData.Models.Medicine", "Medicine") 292 351 .WithMany() 293 .HasForeignKey("MedicineId"); 352 .HasForeignKey("MedicineId") 353 .OnDelete(DeleteBehavior.Cascade) 354 .IsRequired(); 294 355 295 356 b.HasOne("FarmatikoData.Models.PharmacyHead", null) … … 305 366 }); 306 367 307 modelBuilder.Entity("FarmatikoData.Models.PharmacyHead", b => 308 { 368 modelBuilder.Entity("FarmatikoData.Models.RequestPharmacyHead", b => 369 { 370 b.HasOne("FarmatikoData.Models.PharmacyHead", "Head") 371 .WithMany() 372 .HasForeignKey("HeadId") 373 .OnDelete(DeleteBehavior.Cascade) 374 .IsRequired(); 375 309 376 b.HasOne("FarmatikoData.Models.Pharmacy", "Pharmacy") 310 377 .WithMany() 311 .HasForeignKey("PharmacyId"); 312 313 b.HasOne("FarmatikoData.Models.MedicineList", "PharmacyMedicines") 314 .WithMany() 315 .HasForeignKey("PharmacyMedicinesId"); 378 .HasForeignKey("PharmacyId") 379 .OnDelete(DeleteBehavior.Cascade) 380 .IsRequired(); 316 381 }); 317 382 #pragma warning restore 612, 618
Note:
See TracChangeset
for help on using the changeset viewer.