feat: breathing exercise & profile
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class BreathingExercise extends Model
|
||||
{
|
||||
public $timestamps = false; // we handle created_at manually
|
||||
protected $fillable = ['user_id', 'subject', 'duration', 'created_at'];
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo(User::class);
|
||||
}
|
||||
}
|
||||
@@ -97,5 +97,10 @@ public function response()
|
||||
{
|
||||
return $this->hasOne(UserResponse::class);
|
||||
}
|
||||
|
||||
public function breathingExercises()
|
||||
{
|
||||
return $this->hasMany(BreathingExercise::class);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user