CircleAuthorizationToFile EF migration
All checks were successful
Dotnet build and test / build (pull_request) Successful in 6m15s
All checks were successful
Dotnet build and test / build (pull_request) Successful in 6m15s
This commit is contained in:
parent
10fdcb288c
commit
38bc659a58
7 changed files with 4950 additions and 11 deletions
|
|
@ -1088,6 +1088,27 @@ namespace Yavsc.Migrations
|
|||
b.ToTable("CircleAuthorizationToBlogPost");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToFile", b =>
|
||||
{
|
||||
b.Property<long>("CircleId")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.Property<string>("Path")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("OwnerId")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<byte>("Access")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.HasKey("CircleId", "Path", "OwnerId");
|
||||
|
||||
b.HasIndex("OwnerId");
|
||||
|
||||
b.ToTable("CircleAuthorizationToFile");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Yavsc.Models.AccountBalance", b =>
|
||||
{
|
||||
b.Property<string>("UserId")
|
||||
|
|
@ -3767,6 +3788,25 @@ namespace Yavsc.Migrations
|
|||
b.Navigation("Target");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToFile", b =>
|
||||
{
|
||||
b.HasOne("Yavsc.Models.Relationship.Circle", "Allowed")
|
||||
.WithMany()
|
||||
.HasForeignKey("CircleId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("Yavsc.Models.ApplicationUser", "Owner")
|
||||
.WithMany()
|
||||
.HasForeignKey("OwnerId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Allowed");
|
||||
|
||||
b.Navigation("Owner");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Yavsc.Models.AccountBalance", b =>
|
||||
{
|
||||
b.HasOne("Yavsc.Models.ApplicationUser", "Owner")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue