feat(mobile): add mobile app with Expo/React Native and Laravel API endpoints
This commit is contained in:
28
app/Models/MobileTaskPin.php
Normal file
28
app/Models/MobileTaskPin.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class MobileTaskPin extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'mobile_task_pins';
|
||||
|
||||
protected $fillable = [
|
||||
'user_id',
|
||||
'task_id',
|
||||
];
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo(User::class, 'user_id');
|
||||
}
|
||||
|
||||
public function task()
|
||||
{
|
||||
return $this->belongsTo(MobileTask::class, 'task_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user