Started working on frontend
All checks were successful
HopFrame CI / build (push) Successful in 44s
HopFrame CI / test (push) Successful in 52s

This commit is contained in:
2026-02-25 16:33:46 +01:00
parent d2082ef33c
commit ff2634ff41
27 changed files with 558 additions and 26 deletions

View File

@@ -12,6 +12,12 @@ public class DatabaseContext(DbContextOptions<DatabaseContext> options) : DbCont
protected override void OnModelCreating(ModelBuilder modelBuilder) {
base.OnModelCreating(modelBuilder);
modelBuilder.Entity<Post>()
.HasKey(p => p.Id);
modelBuilder.Entity<User>()
.HasKey(u => u.Id);
modelBuilder.Entity<User>()
.HasMany(u => u.Posts)
.WithOne(p => p.Sender)