This commit is contained in:
@@ -82,7 +82,8 @@ namespace AyaNova.Models
|
||||
modelBuilder.Entity<User>()
|
||||
.HasOne(p => p.UserOptions)
|
||||
.WithOne(i => i.User)
|
||||
.HasForeignKey<UserOptions>(b => b.UserId);
|
||||
.HasForeignKey<UserOptions>(b => b.UserId)
|
||||
.OnDelete(DeleteBehavior.Cascade);//Hopefully will delete the useroptions with the user?
|
||||
|
||||
|
||||
//-----------
|
||||
|
||||
@@ -14,6 +14,7 @@ namespace AyaNova.Models
|
||||
public long OwnerId { get; set; }
|
||||
|
||||
//-------------
|
||||
[EmailAddress]
|
||||
public string EmailAddress { get; set; }
|
||||
public decimal TimeZoneOffset { get; set; }
|
||||
public int UiColor { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user