match_making/app/Models/FollowPenawaran.php
2025-01-02 09:09:28 +07:00

26 lines
554 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class FollowPenawaran extends Model
{
use HasFactory;
protected $table = 'follows_project_penawaran';
public $timestamps = true;
protected $fillable = ['user_id', 'project_id', 'followed_user_id', 'status'];
public function user()
{
return $this->belongsTo(User::class);
}
public function project()
{
return $this->belongsTo(PenawaranProject::class, 'project_id');
}
}