source: ChapterX.Infrastructure/Migrations/ApplicationDbContextModelSnapshot.cs@ dc383dd

main
Last change on this file since dc383dd was b62cefc, checked in by kikisrbinoska <srbinoskakristina07@…>, 4 months ago

Added frontend and imporoved AI Suggestions service

  • Property mode set to 100644
File size: 29.0 KB
Line 
1// <auto-generated />
2using System;
3using ChapterX.Infrastructure.Data.DataContext;
4using Microsoft.EntityFrameworkCore;
5using Microsoft.EntityFrameworkCore.Infrastructure;
6using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
7using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
8
9#nullable disable
10
11namespace ChapterX.Infrastructure.Migrations
12{
13 [DbContext(typeof(ApplicationDbContext))]
14 partial class ApplicationDbContextModelSnapshot : ModelSnapshot
15 {
16 protected override void BuildModel(ModelBuilder modelBuilder)
17 {
18#pragma warning disable 612, 618
19 modelBuilder
20 .HasAnnotation("ProductVersion", "9.0.1")
21 .HasAnnotation("Relational:MaxIdentifierLength", 63);
22
23 NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
24
25 modelBuilder.Entity("ChapterX.Domain.Entities.AISuggestion", b =>
26 {
27 b.Property<int>("Id")
28 .ValueGeneratedOnAdd()
29 .HasColumnType("integer");
30
31 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
32
33 b.Property<bool?>("Accepted")
34 .HasColumnType("boolean");
35
36 b.Property<DateTime?>("AppliedAt")
37 .HasColumnType("timestamp with time zone");
38
39 b.Property<DateTime>("CreatedAt")
40 .HasColumnType("timestamp with time zone");
41
42 b.Property<string>("OriginalText")
43 .IsRequired()
44 .HasColumnType("text");
45
46 b.Property<int>("StoryId")
47 .HasColumnType("integer");
48
49 b.Property<string>("SuggestedText")
50 .IsRequired()
51 .HasColumnType("text");
52
53 b.PrimitiveCollection<int[]>("SuggestionTypes")
54 .IsRequired()
55 .HasColumnType("integer[]");
56
57 b.HasKey("Id");
58
59 b.HasIndex("StoryId");
60
61 b.ToTable("AISuggestions", (string)null);
62 });
63
64 modelBuilder.Entity("ChapterX.Domain.Entities.Admin", b =>
65 {
66 b.Property<int>("Id")
67 .ValueGeneratedOnAdd()
68 .HasColumnType("integer");
69
70 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
71
72 b.Property<int>("UserId")
73 .HasColumnType("integer");
74
75 b.HasKey("Id");
76
77 b.HasIndex("UserId")
78 .IsUnique();
79
80 b.ToTable("Admins", (string)null);
81 });
82
83 modelBuilder.Entity("ChapterX.Domain.Entities.Chapter", b =>
84 {
85 b.Property<int>("Id")
86 .ValueGeneratedOnAdd()
87 .HasColumnType("integer");
88
89 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
90
91 b.Property<string>("Content")
92 .IsRequired()
93 .HasColumnType("text");
94
95 b.Property<DateTime>("CreatedAt")
96 .HasColumnType("timestamp with time zone");
97
98 b.Property<string>("Name")
99 .IsRequired()
100 .HasColumnType("text");
101
102 b.Property<int>("Number")
103 .HasColumnType("integer");
104
105 b.Property<DateTime>("PublishedAt")
106 .HasColumnType("timestamp with time zone");
107
108 b.Property<decimal?>("Rating")
109 .HasColumnType("numeric");
110
111 b.Property<int>("StoryId")
112 .HasColumnType("integer");
113
114 b.Property<string>("Title")
115 .IsRequired()
116 .HasColumnType("text");
117
118 b.Property<DateTime>("UpdatedAt")
119 .HasColumnType("timestamp with time zone");
120
121 b.Property<int>("ViewCount")
122 .HasColumnType("integer");
123
124 b.Property<int?>("WordCount")
125 .HasColumnType("integer");
126
127 b.HasKey("Id");
128
129 b.HasIndex("StoryId");
130
131 b.ToTable("Chapters", (string)null);
132 });
133
134 modelBuilder.Entity("ChapterX.Domain.Entities.Collaboration", b =>
135 {
136 b.Property<int>("Id")
137 .ValueGeneratedOnAdd()
138 .HasColumnType("integer");
139
140 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
141
142 b.Property<DateTime>("JoinedAt")
143 .HasColumnType("timestamp with time zone");
144
145 b.Property<string>("Role")
146 .IsRequired()
147 .HasColumnType("text");
148
149 b.Property<int>("StoryId")
150 .HasColumnType("integer");
151
152 b.Property<int>("UserId")
153 .HasColumnType("integer");
154
155 b.HasKey("Id");
156
157 b.HasIndex("StoryId");
158
159 b.HasIndex("UserId");
160
161 b.ToTable("Collaborations", (string)null);
162 });
163
164 modelBuilder.Entity("ChapterX.Domain.Entities.Comment", b =>
165 {
166 b.Property<int>("Id")
167 .ValueGeneratedOnAdd()
168 .HasColumnType("integer");
169
170 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
171
172 b.Property<string>("Content")
173 .IsRequired()
174 .HasColumnType("text");
175
176 b.Property<DateTime>("CreatedAt")
177 .HasColumnType("timestamp with time zone");
178
179 b.Property<int>("StoryId")
180 .HasColumnType("integer");
181
182 b.Property<DateTime>("UpdatedAt")
183 .HasColumnType("timestamp with time zone");
184
185 b.Property<int>("UserId")
186 .HasColumnType("integer");
187
188 b.HasKey("Id");
189
190 b.HasIndex("StoryId");
191
192 b.HasIndex("UserId");
193
194 b.ToTable("Comments", (string)null);
195 });
196
197 modelBuilder.Entity("ChapterX.Domain.Entities.Genre", b =>
198 {
199 b.Property<int>("Id")
200 .ValueGeneratedOnAdd()
201 .HasColumnType("integer");
202
203 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
204
205 b.Property<string>("Name")
206 .IsRequired()
207 .HasColumnType("text");
208
209 b.HasKey("Id");
210
211 b.ToTable("Genres", (string)null);
212 });
213
214 modelBuilder.Entity("ChapterX.Domain.Entities.HasGenre", b =>
215 {
216 b.Property<int>("Id")
217 .ValueGeneratedOnAdd()
218 .HasColumnType("integer");
219
220 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
221
222 b.Property<int>("GenreId")
223 .HasColumnType("integer");
224
225 b.Property<int>("StoryId")
226 .HasColumnType("integer");
227
228 b.HasKey("Id");
229
230 b.HasIndex("GenreId");
231
232 b.HasIndex("StoryId");
233
234 b.ToTable("HasGenres", (string)null);
235 });
236
237 modelBuilder.Entity("ChapterX.Domain.Entities.Likes", b =>
238 {
239 b.Property<int>("Id")
240 .ValueGeneratedOnAdd()
241 .HasColumnType("integer");
242
243 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
244
245 b.Property<int>("ChapterId")
246 .HasColumnType("integer");
247
248 b.Property<DateTime>("CreatedAt")
249 .HasColumnType("timestamp with time zone");
250
251 b.Property<int?>("StoryId")
252 .HasColumnType("integer");
253
254 b.Property<int>("UserId")
255 .HasColumnType("integer");
256
257 b.HasKey("Id");
258
259 b.HasIndex("ChapterId");
260
261 b.HasIndex("StoryId");
262
263 b.HasIndex("UserId");
264
265 b.ToTable("Likes", (string)null);
266 });
267
268 modelBuilder.Entity("ChapterX.Domain.Entities.NeedApproval", b =>
269 {
270 b.Property<int>("Id")
271 .ValueGeneratedOnAdd()
272 .HasColumnType("integer");
273
274 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
275
276 b.Property<int?>("AISuggestionId")
277 .HasColumnType("integer");
278
279 b.Property<int>("AdminId")
280 .HasColumnType("integer");
281
282 b.Property<bool>("Approved")
283 .HasColumnType("boolean");
284
285 b.Property<int?>("ChapterId")
286 .HasColumnType("integer");
287
288 b.Property<DateTime>("RequestedAt")
289 .HasColumnType("timestamp with time zone");
290
291 b.Property<int>("StoryId")
292 .HasColumnType("integer");
293
294 b.HasKey("Id");
295
296 b.HasIndex("AISuggestionId");
297
298 b.HasIndex("AdminId");
299
300 b.HasIndex("ChapterId");
301
302 b.HasIndex("StoryId");
303
304 b.ToTable("NeedApprovals", (string)null);
305 });
306
307 modelBuilder.Entity("ChapterX.Domain.Entities.Notification", b =>
308 {
309 b.Property<int>("Id")
310 .ValueGeneratedOnAdd()
311 .HasColumnType("integer");
312
313 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
314
315 b.Property<string>("Content")
316 .IsRequired()
317 .HasColumnType("text");
318
319 b.PrimitiveCollection<int[]>("ContentTypes")
320 .IsRequired()
321 .HasColumnType("integer[]");
322
323 b.Property<DateTime>("CreatedAt")
324 .HasColumnType("timestamp with time zone");
325
326 b.Property<bool>("IsRead")
327 .HasColumnType("boolean");
328
329 b.HasKey("Id");
330
331 b.ToTable("Notifications", (string)null);
332 });
333
334 modelBuilder.Entity("ChapterX.Domain.Entities.Notify", b =>
335 {
336 b.Property<int>("Id")
337 .ValueGeneratedOnAdd()
338 .HasColumnType("integer");
339
340 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
341
342 b.Property<bool>("IsRead")
343 .HasColumnType("boolean");
344
345 b.Property<int>("NotificationId")
346 .HasColumnType("integer");
347
348 b.Property<int?>("StoryId")
349 .HasColumnType("integer");
350
351 b.Property<int>("UserId")
352 .HasColumnType("integer");
353
354 b.HasKey("Id");
355
356 b.HasIndex("NotificationId");
357
358 b.HasIndex("StoryId");
359
360 b.HasIndex("UserId");
361
362 b.ToTable("Notifies", (string)null);
363 });
364
365 modelBuilder.Entity("ChapterX.Domain.Entities.ReadingList", b =>
366 {
367 b.Property<int>("Id")
368 .ValueGeneratedOnAdd()
369 .HasColumnType("integer");
370
371 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
372
373 b.Property<string>("Content")
374 .HasColumnType("text");
375
376 b.Property<DateTime>("CreatedAt")
377 .HasColumnType("timestamp with time zone");
378
379 b.Property<bool>("IsPublic")
380 .HasColumnType("boolean");
381
382 b.Property<string>("Name")
383 .IsRequired()
384 .HasColumnType("text");
385
386 b.Property<DateTime>("UpdatedAt")
387 .HasColumnType("timestamp with time zone");
388
389 b.Property<int>("UserId")
390 .HasColumnType("integer");
391
392 b.HasKey("Id");
393
394 b.HasIndex("UserId");
395
396 b.ToTable("ReadingLists", (string)null);
397 });
398
399 modelBuilder.Entity("ChapterX.Domain.Entities.ReadingListItems", b =>
400 {
401 b.Property<int>("Id")
402 .ValueGeneratedOnAdd()
403 .HasColumnType("integer");
404
405 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
406
407 b.Property<DateTime>("AddedAt")
408 .HasColumnType("timestamp with time zone");
409
410 b.Property<int>("ReadingListId")
411 .HasColumnType("integer");
412
413 b.Property<int>("StoryId")
414 .HasColumnType("integer");
415
416 b.HasKey("Id");
417
418 b.HasIndex("ReadingListId");
419
420 b.HasIndex("StoryId");
421
422 b.ToTable("ReadingListItems", (string)null);
423 });
424
425 modelBuilder.Entity("ChapterX.Domain.Entities.RegularUser", b =>
426 {
427 b.Property<int>("Id")
428 .ValueGeneratedOnAdd()
429 .HasColumnType("integer");
430
431 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
432
433 b.Property<int>("UserId")
434 .HasColumnType("integer");
435
436 b.HasKey("Id");
437
438 b.HasIndex("UserId")
439 .IsUnique();
440
441 b.ToTable("RegularUsers", (string)null);
442 });
443
444 modelBuilder.Entity("ChapterX.Domain.Entities.Story", b =>
445 {
446 b.Property<int>("Id")
447 .ValueGeneratedOnAdd()
448 .HasColumnType("integer");
449
450 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
451
452 b.Property<string>("Content")
453 .IsRequired()
454 .HasColumnType("text");
455
456 b.Property<DateTime>("CreatedAt")
457 .HasColumnType("timestamp with time zone");
458
459 b.Property<string>("Image")
460 .HasColumnType("text");
461
462 b.Property<bool>("MatureContent")
463 .HasColumnType("boolean");
464
465 b.Property<string>("ShortDescription")
466 .IsRequired()
467 .HasColumnType("text");
468
469 b.PrimitiveCollection<int[]>("Statuses")
470 .IsRequired()
471 .HasColumnType("integer[]");
472
473 b.Property<DateTime>("UpdatedAt")
474 .HasColumnType("timestamp with time zone");
475
476 b.Property<int>("UserId")
477 .HasColumnType("integer");
478
479 b.Property<int>("WriterId")
480 .HasColumnType("integer");
481
482 b.HasKey("Id");
483
484 b.HasIndex("WriterId");
485
486 b.ToTable("Stories", (string)null);
487 });
488
489 modelBuilder.Entity("ChapterX.Domain.Entities.User", b =>
490 {
491 b.Property<int>("Id")
492 .ValueGeneratedOnAdd()
493 .HasColumnType("integer");
494
495 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
496
497 b.Property<DateTime>("CreatedAt")
498 .HasColumnType("timestamp with time zone");
499
500 b.Property<string>("Email")
501 .IsRequired()
502 .HasColumnType("text");
503
504 b.Property<string>("Name")
505 .IsRequired()
506 .HasColumnType("text");
507
508 b.Property<string>("Password")
509 .IsRequired()
510 .HasColumnType("text");
511
512 b.Property<string>("Surname")
513 .IsRequired()
514 .HasColumnType("text");
515
516 b.Property<DateTime>("UpdatedAt")
517 .HasColumnType("timestamp with time zone");
518
519 b.Property<string>("Username")
520 .IsRequired()
521 .HasColumnType("text");
522
523 b.HasKey("Id");
524
525 b.ToTable("Users", (string)null);
526 });
527
528 modelBuilder.Entity("ChapterX.Domain.Entities.Writer", b =>
529 {
530 b.Property<int>("Id")
531 .ValueGeneratedOnAdd()
532 .HasColumnType("integer");
533
534 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
535
536 b.Property<string>("Bio")
537 .IsRequired()
538 .HasColumnType("text");
539
540 b.Property<int>("UserId")
541 .HasColumnType("integer");
542
543 b.HasKey("Id");
544
545 b.HasIndex("UserId")
546 .IsUnique();
547
548 b.ToTable("Writers", (string)null);
549 });
550
551 modelBuilder.Entity("ChapterX.Domain.Entities.AISuggestion", b =>
552 {
553 b.HasOne("ChapterX.Domain.Entities.Story", "Story")
554 .WithMany("AISuggestions")
555 .HasForeignKey("StoryId")
556 .OnDelete(DeleteBehavior.Cascade)
557 .IsRequired();
558
559 b.Navigation("Story");
560 });
561
562 modelBuilder.Entity("ChapterX.Domain.Entities.Admin", b =>
563 {
564 b.HasOne("ChapterX.Domain.Entities.User", "User")
565 .WithOne("Admin")
566 .HasForeignKey("ChapterX.Domain.Entities.Admin", "UserId")
567 .OnDelete(DeleteBehavior.Cascade)
568 .IsRequired();
569
570 b.Navigation("User");
571 });
572
573 modelBuilder.Entity("ChapterX.Domain.Entities.Chapter", b =>
574 {
575 b.HasOne("ChapterX.Domain.Entities.Story", "Story")
576 .WithMany("Chapters")
577 .HasForeignKey("StoryId")
578 .OnDelete(DeleteBehavior.Cascade)
579 .IsRequired();
580
581 b.Navigation("Story");
582 });
583
584 modelBuilder.Entity("ChapterX.Domain.Entities.Collaboration", b =>
585 {
586 b.HasOne("ChapterX.Domain.Entities.Story", "Story")
587 .WithMany("Collaborations")
588 .HasForeignKey("StoryId")
589 .OnDelete(DeleteBehavior.Cascade)
590 .IsRequired();
591
592 b.HasOne("ChapterX.Domain.Entities.User", "User")
593 .WithMany("Collaborations")
594 .HasForeignKey("UserId")
595 .OnDelete(DeleteBehavior.Cascade)
596 .IsRequired();
597
598 b.Navigation("Story");
599
600 b.Navigation("User");
601 });
602
603 modelBuilder.Entity("ChapterX.Domain.Entities.Comment", b =>
604 {
605 b.HasOne("ChapterX.Domain.Entities.Story", "Story")
606 .WithMany("Comments")
607 .HasForeignKey("StoryId")
608 .OnDelete(DeleteBehavior.Cascade)
609 .IsRequired();
610
611 b.HasOne("ChapterX.Domain.Entities.User", "User")
612 .WithMany("Comments")
613 .HasForeignKey("UserId")
614 .OnDelete(DeleteBehavior.Cascade)
615 .IsRequired();
616
617 b.Navigation("Story");
618
619 b.Navigation("User");
620 });
621
622 modelBuilder.Entity("ChapterX.Domain.Entities.HasGenre", b =>
623 {
624 b.HasOne("ChapterX.Domain.Entities.Genre", "Genre")
625 .WithMany("HasGenres")
626 .HasForeignKey("GenreId")
627 .OnDelete(DeleteBehavior.Cascade)
628 .IsRequired();
629
630 b.HasOne("ChapterX.Domain.Entities.Story", "Story")
631 .WithMany("HasGenres")
632 .HasForeignKey("StoryId")
633 .OnDelete(DeleteBehavior.Cascade)
634 .IsRequired();
635
636 b.Navigation("Genre");
637
638 b.Navigation("Story");
639 });
640
641 modelBuilder.Entity("ChapterX.Domain.Entities.Likes", b =>
642 {
643 b.HasOne("ChapterX.Domain.Entities.Chapter", "Chapter")
644 .WithMany()
645 .HasForeignKey("ChapterId")
646 .OnDelete(DeleteBehavior.Cascade)
647 .IsRequired();
648
649 b.HasOne("ChapterX.Domain.Entities.Story", null)
650 .WithMany("Likes")
651 .HasForeignKey("StoryId");
652
653 b.HasOne("ChapterX.Domain.Entities.User", "User")
654 .WithMany("Likes")
655 .HasForeignKey("UserId")
656 .OnDelete(DeleteBehavior.Cascade)
657 .IsRequired();
658
659 b.Navigation("Chapter");
660
661 b.Navigation("User");
662 });
663
664 modelBuilder.Entity("ChapterX.Domain.Entities.NeedApproval", b =>
665 {
666 b.HasOne("ChapterX.Domain.Entities.AISuggestion", null)
667 .WithMany("NeedApprovals")
668 .HasForeignKey("AISuggestionId");
669
670 b.HasOne("ChapterX.Domain.Entities.Admin", "Admin")
671 .WithMany()
672 .HasForeignKey("AdminId")
673 .OnDelete(DeleteBehavior.Cascade)
674 .IsRequired();
675
676 b.HasOne("ChapterX.Domain.Entities.Chapter", null)
677 .WithMany("NeedApprovals")
678 .HasForeignKey("ChapterId");
679
680 b.HasOne("ChapterX.Domain.Entities.Story", "Story")
681 .WithMany("NeedApprovals")
682 .HasForeignKey("StoryId")
683 .OnDelete(DeleteBehavior.Cascade)
684 .IsRequired();
685
686 b.Navigation("Admin");
687
688 b.Navigation("Story");
689 });
690
691 modelBuilder.Entity("ChapterX.Domain.Entities.Notify", b =>
692 {
693 b.HasOne("ChapterX.Domain.Entities.Notification", "Notification")
694 .WithMany("Notifies")
695 .HasForeignKey("NotificationId")
696 .OnDelete(DeleteBehavior.Cascade)
697 .IsRequired();
698
699 b.HasOne("ChapterX.Domain.Entities.Story", null)
700 .WithMany("Notifies")
701 .HasForeignKey("StoryId");
702
703 b.HasOne("ChapterX.Domain.Entities.User", "User")
704 .WithMany("Notifies")
705 .HasForeignKey("UserId")
706 .OnDelete(DeleteBehavior.Cascade)
707 .IsRequired();
708
709 b.Navigation("Notification");
710
711 b.Navigation("User");
712 });
713
714 modelBuilder.Entity("ChapterX.Domain.Entities.ReadingList", b =>
715 {
716 b.HasOne("ChapterX.Domain.Entities.User", "User")
717 .WithMany("ReadingLists")
718 .HasForeignKey("UserId")
719 .OnDelete(DeleteBehavior.Cascade)
720 .IsRequired();
721
722 b.Navigation("User");
723 });
724
725 modelBuilder.Entity("ChapterX.Domain.Entities.ReadingListItems", b =>
726 {
727 b.HasOne("ChapterX.Domain.Entities.ReadingList", "ReadingList")
728 .WithMany("ReadingListItems")
729 .HasForeignKey("ReadingListId")
730 .OnDelete(DeleteBehavior.Cascade)
731 .IsRequired();
732
733 b.HasOne("ChapterX.Domain.Entities.Story", "Story")
734 .WithMany("ReadingListItems")
735 .HasForeignKey("StoryId")
736 .OnDelete(DeleteBehavior.Cascade)
737 .IsRequired();
738
739 b.Navigation("ReadingList");
740
741 b.Navigation("Story");
742 });
743
744 modelBuilder.Entity("ChapterX.Domain.Entities.RegularUser", b =>
745 {
746 b.HasOne("ChapterX.Domain.Entities.User", "User")
747 .WithOne("RegularUser")
748 .HasForeignKey("ChapterX.Domain.Entities.RegularUser", "UserId")
749 .OnDelete(DeleteBehavior.Cascade)
750 .IsRequired();
751
752 b.Navigation("User");
753 });
754
755 modelBuilder.Entity("ChapterX.Domain.Entities.Story", b =>
756 {
757 b.HasOne("ChapterX.Domain.Entities.Writer", "Writer")
758 .WithMany("Stories")
759 .HasForeignKey("WriterId")
760 .OnDelete(DeleteBehavior.Cascade)
761 .IsRequired();
762
763 b.Navigation("Writer");
764 });
765
766 modelBuilder.Entity("ChapterX.Domain.Entities.Writer", b =>
767 {
768 b.HasOne("ChapterX.Domain.Entities.User", "User")
769 .WithOne("Writer")
770 .HasForeignKey("ChapterX.Domain.Entities.Writer", "UserId")
771 .OnDelete(DeleteBehavior.Cascade)
772 .IsRequired();
773
774 b.Navigation("User");
775 });
776
777 modelBuilder.Entity("ChapterX.Domain.Entities.AISuggestion", b =>
778 {
779 b.Navigation("NeedApprovals");
780 });
781
782 modelBuilder.Entity("ChapterX.Domain.Entities.Chapter", b =>
783 {
784 b.Navigation("NeedApprovals");
785 });
786
787 modelBuilder.Entity("ChapterX.Domain.Entities.Genre", b =>
788 {
789 b.Navigation("HasGenres");
790 });
791
792 modelBuilder.Entity("ChapterX.Domain.Entities.Notification", b =>
793 {
794 b.Navigation("Notifies");
795 });
796
797 modelBuilder.Entity("ChapterX.Domain.Entities.ReadingList", b =>
798 {
799 b.Navigation("ReadingListItems");
800 });
801
802 modelBuilder.Entity("ChapterX.Domain.Entities.Story", b =>
803 {
804 b.Navigation("AISuggestions");
805
806 b.Navigation("Chapters");
807
808 b.Navigation("Collaborations");
809
810 b.Navigation("Comments");
811
812 b.Navigation("HasGenres");
813
814 b.Navigation("Likes");
815
816 b.Navigation("NeedApprovals");
817
818 b.Navigation("Notifies");
819
820 b.Navigation("ReadingListItems");
821 });
822
823 modelBuilder.Entity("ChapterX.Domain.Entities.User", b =>
824 {
825 b.Navigation("Admin");
826
827 b.Navigation("Collaborations");
828
829 b.Navigation("Comments");
830
831 b.Navigation("Likes");
832
833 b.Navigation("Notifies");
834
835 b.Navigation("ReadingLists");
836
837 b.Navigation("RegularUser");
838
839 b.Navigation("Writer");
840 });
841
842 modelBuilder.Entity("ChapterX.Domain.Entities.Writer", b =>
843 {
844 b.Navigation("Stories");
845 });
846#pragma warning restore 612, 618
847 }
848 }
849}
Note: See TracBrowser for help on using the repository browser.