some progress

This commit is contained in:
2025-09-20 16:47:41 +03:00
parent e650f3c1b2
commit 2228469bcb
65 changed files with 3382 additions and 311 deletions
+16
View File
@@ -45,4 +45,20 @@ class User extends Authenticatable
'password' => 'hashed',
];
}
/**
* Books saved by the user in their readlist.
*/
public function readlistBooks()
{
return $this->belongsToMany(Book::class, 'readlist_items')->withTimestamps();
}
/**
* Reviews authored by the user.
*/
public function reviews()
{
return $this->hasMany(SummaryReview::class);
}
}