migrate to gtea from bistbucket
This commit is contained in:
23
app/Models/UserCurrency.php
Normal file
23
app/Models/UserCurrency.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class UserCurrency extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = ['business_id', 'currency_id', 'name', 'country_name', 'code', 'rate', 'symbol', 'position'];
|
||||
|
||||
public function business(){
|
||||
return $this->belongsTo(Business::class);
|
||||
}
|
||||
|
||||
protected $casts = [
|
||||
'business_id' => 'integer',
|
||||
'currency_id' => 'integer',
|
||||
'rate' => 'double',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user