2024-03-28 14:52:40 +05:30
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
|
|
class MonthlyUpdateMaster extends Model
|
|
|
|
|
{
|
|
|
|
|
use HasFactory;
|
|
|
|
|
|
|
|
|
|
protected $fillable = ['users_id', 'categories', 'products_id', 'custom_id', 'investor_name', 'pan', 'product_category', 'investment_platform', 'product_name', 'counter_party', 'account_number', 'spv_details', 'class_of_units', 'fund_category'];
|
|
|
|
|
|
|
|
|
|
public function investor()
|
|
|
|
|
{
|
|
|
|
|
return $this->belongsTo(User::class, 'users_id');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function products()
|
|
|
|
|
{
|
|
|
|
|
return $this->belongsTo(Product::class, 'products_id');
|
|
|
|
|
}
|
2024-05-13 19:24:48 +05:30
|
|
|
public function companies()
|
|
|
|
|
{
|
|
|
|
|
return $this->belongsTo(Company::class, 'investment_platform');
|
|
|
|
|
}
|
2024-06-06 17:40:51 +05:30
|
|
|
|
|
|
|
|
public function monthlyAIF()
|
|
|
|
|
{
|
|
|
|
|
return $this->hasOne(MonthlyUpdateAlternativeInvestmentFund::class,'custom_id','custom_id');
|
|
|
|
|
}
|
|
|
|
|
public function monthlyFRE()
|
|
|
|
|
{
|
|
|
|
|
return $this->hasOne(MonthlyUpdateFractionalRealEstate::class,'custom_id','custom_id');
|
|
|
|
|
}
|
2024-03-28 14:52:40 +05:30
|
|
|
}
|