source: resTools_backend/backend/Migrations/20220915165432_CronJobs.Designer.cs

Last change on this file was 13f1472, checked in by Danilo <danilo.najkov@…>, 2 years ago

vip functionallity + menu fields + alergens filtering + google/fb login + email queueing

  • Property mode set to 100644
File size: 11.8 KB
Line 
1// <auto-generated />
2using System;
3using Microsoft.EntityFrameworkCore;
4using Microsoft.EntityFrameworkCore.Infrastructure;
5using Microsoft.EntityFrameworkCore.Migrations;
6using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
7using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
8using backend.Data;
9
10#nullable disable
11
12namespace backend.Migrations
13{
14 [DbContext(typeof(DataContext))]
15 [Migration("20220915165432_CronJobs")]
16 partial class CronJobs
17 {
18 protected override void BuildTargetModel(ModelBuilder modelBuilder)
19 {
20#pragma warning disable 612, 618
21 modelBuilder
22 .HasAnnotation("ProductVersion", "6.0.3")
23 .HasAnnotation("Relational:MaxIdentifierLength", 63);
24
25 NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
26
27 modelBuilder.Entity("backend.Entities.MenuItem", b =>
28 {
29 b.Property<int>("Id")
30 .ValueGeneratedOnAdd()
31 .HasColumnType("integer");
32
33 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
34
35 b.Property<string>("Description")
36 .IsRequired()
37 .HasColumnType("text");
38
39 b.Property<int>("Price")
40 .HasColumnType("integer");
41
42 b.Property<int>("RestaurantId")
43 .HasColumnType("integer");
44
45 b.Property<string>("Title")
46 .IsRequired()
47 .HasColumnType("text");
48
49 b.HasKey("Id");
50
51 b.HasIndex("RestaurantId");
52
53 b.ToTable("MenuItems");
54 });
55
56 modelBuilder.Entity("backend.Entities.QueueItem", b =>
57 {
58 b.Property<int>("Id")
59 .ValueGeneratedOnAdd()
60 .HasColumnType("integer");
61
62 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
63
64 b.Property<DateTime>("CreatedAt")
65 .HasColumnType("timestamp with time zone");
66
67 b.Property<string>("Message")
68 .IsRequired()
69 .HasColumnType("text");
70
71 b.Property<string>("Reciptient")
72 .IsRequired()
73 .HasColumnType("text");
74
75 b.Property<int>("Retries")
76 .HasColumnType("integer");
77
78 b.Property<string>("Subject")
79 .IsRequired()
80 .HasColumnType("text");
81
82 b.HasKey("Id");
83
84 b.ToTable("QueueItems");
85 });
86
87 modelBuilder.Entity("backend.Entities.Reservation", b =>
88 {
89 b.Property<int>("Id")
90 .ValueGeneratedOnAdd()
91 .HasColumnType("integer");
92
93 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
94
95 b.Property<string>("ContactName")
96 .IsRequired()
97 .HasColumnType("text");
98
99 b.Property<string>("ContactNumber")
100 .IsRequired()
101 .HasColumnType("text");
102
103 b.Property<int>("Persons")
104 .HasColumnType("integer");
105
106 b.Property<int>("ReservationPlace")
107 .HasColumnType("integer");
108
109 b.Property<int>("ReservationStatus")
110 .HasColumnType("integer");
111
112 b.Property<int>("ReservationType")
113 .HasColumnType("integer");
114
115 b.Property<int>("RestaurantId")
116 .HasColumnType("integer");
117
118 b.Property<DateTime>("StartDate")
119 .HasColumnType("timestamp with time zone");
120
121 b.Property<int>("Table")
122 .HasColumnType("integer");
123
124 b.HasKey("Id");
125
126 b.HasIndex("RestaurantId");
127
128 b.ToTable("Reservations");
129 });
130
131 modelBuilder.Entity("backend.Entities.Restaurant", b =>
132 {
133 b.Property<int>("Id")
134 .ValueGeneratedOnAdd()
135 .HasColumnType("integer");
136
137 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
138
139 b.Property<string>("Address")
140 .IsRequired()
141 .HasColumnType("text");
142
143 b.Property<byte[]>("Image")
144 .IsRequired()
145 .HasColumnType("bytea");
146
147 b.Property<string>("Name")
148 .IsRequired()
149 .HasColumnType("text");
150
151 b.Property<int?>("OwnerFk")
152 .HasColumnType("integer");
153
154 b.Property<string>("Phone")
155 .IsRequired()
156 .HasColumnType("text");
157
158 b.HasKey("Id");
159
160 b.HasIndex("OwnerFk")
161 .IsUnique();
162
163 b.ToTable("Restoraunts");
164 });
165
166 modelBuilder.Entity("backend.Entities.Review", b =>
167 {
168 b.Property<int>("Id")
169 .ValueGeneratedOnAdd()
170 .HasColumnType("integer");
171
172 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
173
174 b.Property<DateTime>("CreatedAt")
175 .HasColumnType("timestamp with time zone");
176
177 b.Property<string>("Description")
178 .IsRequired()
179 .HasColumnType("text");
180
181 b.Property<int>("RestaurantId")
182 .HasColumnType("integer");
183
184 b.Property<int>("Stars")
185 .HasColumnType("integer");
186
187 b.Property<string>("Title")
188 .IsRequired()
189 .HasColumnType("text");
190
191 b.Property<int>("UserId")
192 .HasColumnType("integer");
193
194 b.HasKey("Id");
195
196 b.HasIndex("RestaurantId");
197
198 b.HasIndex("UserId");
199
200 b.ToTable("Reviews");
201 });
202
203 modelBuilder.Entity("backend.Entities.ToDoItem", b =>
204 {
205 b.Property<int>("Id")
206 .ValueGeneratedOnAdd()
207 .HasColumnType("integer");
208
209 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
210
211 b.Property<DateTime>("CreatedAt")
212 .HasColumnType("timestamp with time zone");
213
214 b.Property<string>("Description")
215 .IsRequired()
216 .HasColumnType("text");
217
218 b.Property<int?>("LinkedReviewId")
219 .HasColumnType("integer");
220
221 b.Property<int>("Priority")
222 .HasColumnType("integer");
223
224 b.Property<int>("Status")
225 .HasColumnType("integer");
226
227 b.Property<string>("Title")
228 .IsRequired()
229 .HasColumnType("text");
230
231 b.HasKey("Id");
232
233 b.HasIndex("LinkedReviewId");
234
235 b.ToTable("ToDoItems");
236 });
237
238 modelBuilder.Entity("backend.Entities.User", b =>
239 {
240 b.Property<int>("Id")
241 .ValueGeneratedOnAdd()
242 .HasColumnType("integer");
243
244 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
245
246 b.Property<string>("ConfirmationURL")
247 .HasColumnType("text");
248
249 b.Property<DateTime?>("ConfirmationValidTo")
250 .HasColumnType("timestamp with time zone");
251
252 b.Property<string>("Email")
253 .IsRequired()
254 .HasColumnType("text");
255
256 b.Property<bool>("IsAdmin")
257 .HasColumnType("boolean");
258
259 b.Property<bool>("IsConfirmed")
260 .HasColumnType("boolean");
261
262 b.Property<string>("Password")
263 .IsRequired()
264 .HasColumnType("text");
265
266 b.Property<string>("PasswordResetURL")
267 .HasColumnType("text");
268
269 b.Property<DateTime?>("PasswordResetValidTo")
270 .HasColumnType("timestamp with time zone");
271
272 b.HasKey("Id");
273
274 b.ToTable("Users");
275 });
276
277 modelBuilder.Entity("backend.Entities.MenuItem", b =>
278 {
279 b.HasOne("backend.Entities.Restaurant", "Restaurant")
280 .WithMany("Menu")
281 .HasForeignKey("RestaurantId")
282 .OnDelete(DeleteBehavior.Cascade)
283 .IsRequired();
284
285 b.Navigation("Restaurant");
286 });
287
288 modelBuilder.Entity("backend.Entities.Reservation", b =>
289 {
290 b.HasOne("backend.Entities.Restaurant", "Restaurant")
291 .WithMany("Reservations")
292 .HasForeignKey("RestaurantId")
293 .OnDelete(DeleteBehavior.Cascade)
294 .IsRequired();
295
296 b.Navigation("Restaurant");
297 });
298
299 modelBuilder.Entity("backend.Entities.Restaurant", b =>
300 {
301 b.HasOne("backend.Entities.User", "Owner")
302 .WithOne("Restaurant")
303 .HasForeignKey("backend.Entities.Restaurant", "OwnerFk");
304
305 b.Navigation("Owner");
306 });
307
308 modelBuilder.Entity("backend.Entities.Review", b =>
309 {
310 b.HasOne("backend.Entities.Restaurant", "Restaurant")
311 .WithMany("Reviews")
312 .HasForeignKey("RestaurantId")
313 .OnDelete(DeleteBehavior.Cascade)
314 .IsRequired();
315
316 b.HasOne("backend.Entities.User", "User")
317 .WithMany()
318 .HasForeignKey("UserId")
319 .OnDelete(DeleteBehavior.Cascade)
320 .IsRequired();
321
322 b.Navigation("Restaurant");
323
324 b.Navigation("User");
325 });
326
327 modelBuilder.Entity("backend.Entities.ToDoItem", b =>
328 {
329 b.HasOne("backend.Entities.Review", "LinkedReview")
330 .WithMany()
331 .HasForeignKey("LinkedReviewId");
332
333 b.Navigation("LinkedReview");
334 });
335
336 modelBuilder.Entity("backend.Entities.Restaurant", b =>
337 {
338 b.Navigation("Menu");
339
340 b.Navigation("Reservations");
341
342 b.Navigation("Reviews");
343 });
344
345 modelBuilder.Entity("backend.Entities.User", b =>
346 {
347 b.Navigation("Restaurant")
348 .IsRequired();
349 });
350#pragma warning restore 612, 618
351 }
352 }
353}
Note: See TracBrowser for help on using the repository browser.