Ignore:
Timestamp:
11/05/20 06:57:35 (3 years ago)
Author:
DimitarSlezenkovski <dslezenkovski@…>
Branches:
master
Children:
afc9a9a
Parents:
1f4846d
Message:

Add SystemService, Auth, fix a lil bugs :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • FarmatikoData/Migrations/FarmatikoDataContextModelSnapshot.cs

    r1f4846d rd23bf72  
    2020                .HasAnnotation("Relational:MaxIdentifierLength", 63);
    2121
    22             modelBuilder.Entity("FarmatikoData.Models.HealthFacilities", b =>
     22            modelBuilder.Entity("FarmatikoData.Models.HealthFacility", b =>
    2323                {
    2424                    b.Property<int>("Id")
     
    6060                });
    6161
    62             modelBuilder.Entity("FarmatikoData.Models.HealthcareWorkers", b =>
     62            modelBuilder.Entity("FarmatikoData.Models.HealthcareWorker", b =>
    6363                {
    6464                    b.Property<int>("Id")
     
    111111
    112112                    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()
    116118                        .HasColumnType("text");
    117119
     
    123125
    124126                    b.Property<string>("Strength")
     127                        .IsRequired()
    125128                        .HasColumnType("text");
    126129
    127130                    b.Property<string>("WayOfIssuing")
     131                        .IsRequired()
    128132                        .HasColumnType("text");
    129133
     
    149153                        .HasColumnType("boolean");
    150154
    151                     b.Property<int?>("MedicineId")
     155                    b.Property<int>("MedicineId")
    152156                        .HasColumnType("integer");
    153157
     
    190194
    191195                    b.Property<string>("Name")
     196                        .IsRequired()
    192197                        .HasColumnType("text");
    193198
     
    214219
    215220                    b.Property<string>("Address")
     221                        .IsRequired()
    216222                        .HasColumnType("text");
    217223
     
    223229
    224230                    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()
    228236                        .HasColumnType("text");
    229237
     
    255263
    256264                    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()
    260270                        .HasColumnType("text");
    261271
    262272                    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");
    272303
    273304                    b.HasIndex("PharmacyId");
    274305
    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")
    283342                        .WithMany()
    284343                        .HasForeignKey("FacilityId")
     
    291350                    b.HasOne("FarmatikoData.Models.Medicine", "Medicine")
    292351                        .WithMany()
    293                         .HasForeignKey("MedicineId");
     352                        .HasForeignKey("MedicineId")
     353                        .OnDelete(DeleteBehavior.Cascade)
     354                        .IsRequired();
    294355
    295356                    b.HasOne("FarmatikoData.Models.PharmacyHead", null)
     
    305366                });
    306367
    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
    309376                    b.HasOne("FarmatikoData.Models.Pharmacy", "Pharmacy")
    310377                        .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();
    316381                });
    317382#pragma warning restore 612, 618
Note: See TracChangeset for help on using the changeset viewer.