add module konfirmasibank
This commit is contained in:
35
Entities/Account.php
Normal file
35
Entities/Account.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\KonfirmasiBank\Entities;
|
||||
|
||||
use Spatie\Activitylog\LogOptions;
|
||||
use Spatie\Activitylog\Traits\LogsActivity;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
class Account extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $connection = 'db2';
|
||||
protected $table = 'STG_DB.ACCOUNT';
|
||||
protected $primaryKey = '@ID';
|
||||
|
||||
//public $incrementing = false;
|
||||
|
||||
protected $fillable = [
|
||||
"'CUSTOMER_NO',
|
||||
'MNEMONIC'
|
||||
'CATEGORY'"
|
||||
];
|
||||
|
||||
|
||||
public function customers(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Customer::class, 'CUSTOMER_NO');
|
||||
}
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user