Changeset cc4db18 for resTools_backend/backend/Migrations
- Timestamp:
- 07/06/22 13:13:35 (2 years ago)
- Branches:
- master
- Children:
- 899b19d
- Parents:
- d76b7ee
- Location:
- resTools_backend/backend/Migrations
- Files:
-
- 6 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
resTools_backend/backend/Migrations/DataContextModelSnapshot.cs
rd76b7ee rcc4db18 23 23 NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); 24 24 25 modelBuilder.Entity("backend.Entities.MenuItem", b => 26 { 27 b.Property<int>("Id") 28 .ValueGeneratedOnAdd() 29 .HasColumnType("integer"); 30 31 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id")); 32 33 b.Property<string>("Description") 34 .IsRequired() 35 .HasColumnType("text"); 36 37 b.Property<int>("Price") 38 .HasColumnType("integer"); 39 40 b.Property<int>("RestaurantId") 41 .HasColumnType("integer"); 42 43 b.Property<string>("Title") 44 .IsRequired() 45 .HasColumnType("text"); 46 47 b.HasKey("Id"); 48 49 b.HasIndex("RestaurantId"); 50 51 b.ToTable("MenuItems"); 52 }); 53 25 54 modelBuilder.Entity("backend.Entities.Reservation", b => 26 55 { … … 57 86 .HasColumnType("timestamp with time zone"); 58 87 88 b.Property<int>("Table") 89 .HasColumnType("integer"); 90 59 91 b.HasKey("Id"); 60 92 … … 72 104 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id")); 73 105 106 b.Property<string>("Address") 107 .IsRequired() 108 .HasColumnType("text"); 109 110 b.Property<byte[]>("Image") 111 .IsRequired() 112 .HasColumnType("bytea"); 113 74 114 b.Property<string>("Name") 75 115 .IsRequired() … … 78 118 b.Property<int?>("OwnerFk") 79 119 .HasColumnType("integer"); 120 121 b.Property<string>("Phone") 122 .IsRequired() 123 .HasColumnType("text"); 80 124 81 125 b.HasKey("Id"); … … 106 150 107 151 b.ToTable("Users"); 152 }); 153 154 modelBuilder.Entity("backend.Entities.MenuItem", b => 155 { 156 b.HasOne("backend.Entities.Restaurant", "Restaurant") 157 .WithMany("Menu") 158 .HasForeignKey("RestaurantId") 159 .OnDelete(DeleteBehavior.Cascade) 160 .IsRequired(); 161 162 b.Navigation("Restaurant"); 108 163 }); 109 164 … … 130 185 modelBuilder.Entity("backend.Entities.Restaurant", b => 131 186 { 187 b.Navigation("Menu"); 188 132 189 b.Navigation("Reservations"); 133 190 });
Note:
See TracChangeset
for help on using the changeset viewer.