feat: add mood

This commit is contained in:
2025-08-27 13:45:21 +03:30
parent 8f9829fc1f
commit 01b67d8f80
8 changed files with 197 additions and 14 deletions
+19
View File
@@ -0,0 +1,19 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class UserMood extends Model
{
protected $fillable = ['user_id', 'mood_id', 'date'];
public function user()
{
return $this->belongsTo(User::class);
}
public function mood()
{
return $this->belongsTo(Mood::class);
}
}