refactoring the Register
This commit is contained in:
parent
ee1e49fde5
commit
f1dd648970
43 changed files with 4610 additions and 86 deletions
|
|
@ -1315,13 +1315,13 @@ namespace Yavsc.Migrations
|
|||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long>("Id"));
|
||||
|
||||
b.Property<string>("AuthorId")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Content")
|
||||
b.Property<string>("Article")
|
||||
.HasMaxLength(56224)
|
||||
.HasColumnType("character varying(56224)");
|
||||
|
||||
b.Property<string>("AuthorId")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<DateTime>("DateCreated")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
|
|
@ -1373,11 +1373,11 @@ namespace Yavsc.Migrations
|
|||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long>("Id"));
|
||||
|
||||
b.Property<string>("AuthorId")
|
||||
b.Property<string>("Article")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Content")
|
||||
b.Property<string>("AuthorId")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
|
|
@ -2279,6 +2279,8 @@ namespace Yavsc.Migrations
|
|||
|
||||
b.HasIndex("GeneralSettingsUserId");
|
||||
|
||||
b.HasIndex("TendencyId");
|
||||
|
||||
b.ToTable("MusicalPreference");
|
||||
});
|
||||
|
||||
|
|
@ -3839,6 +3841,14 @@ namespace Yavsc.Migrations
|
|||
b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings", null)
|
||||
.WithMany("SoundColor")
|
||||
.HasForeignKey("GeneralSettingsUserId");
|
||||
|
||||
b.HasOne("Yavsc.Models.Musical.MusicalTendency", "MusicalTendency")
|
||||
.WithMany()
|
||||
.HasForeignKey("TendencyId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("MusicalTendency");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue