diff --git a/Entities/Category.php b/Entities/Category.php
index 7848b84..09ce242 100644
--- a/Entities/Category.php
+++ b/Entities/Category.php
@@ -13,23 +13,23 @@ class Category extends Model
{
use HasFactory;
- protected $connection = 'db2';
- protected $table = 'STG_DB.CATEGORY';
- protected $primaryKey = 'ID';
+ protected $connection = 'pgsql';
+ protected $table = 'category';
+ protected $primaryKey = 'id';
//public $incrementing = false;
protected $fillable = [
- "'ID',
- 'DESCRIPTION'
- 'SHORT_NAME',"
+ "'id',
+ 'description'
+ 'short_name',"
];
- public function customers(): BelongsTo
- {
- return $this->belongsTo(Customer::class, 'CUSTOMER_NO');
- }
+ // public function customers(): BelongsTo
+ // {
+ // return $this->belongsTo(Customer::class, 'CUSTOMER_NO');
+ // }
}
\ No newline at end of file
diff --git a/Entities/LimitReference.php b/Entities/LimitReference.php
index 931016e..317c83d 100644
--- a/Entities/LimitReference.php
+++ b/Entities/LimitReference.php
@@ -13,22 +13,22 @@ class LimitReference extends Model
{
use HasFactory;
- protected $connection = 'db2';
- protected $table = 'STG_DB.LIMIT_REFERENCE';
- protected $primaryKey = 'ID';
+ protected $connection = 'pgsql';
+ protected $table = 'limit_reference';
+ protected $primaryKey = 'id';
//public $incrementing = false;
protected $fillable = [
- "'ID',
- 'DESC_NAME'
- 'SHORT_NAME',
- 'REDUCING_LIMIT',
- 'LIMIT_MNEMONIC',
- 'LIMIT_PERCENTAGE',
- 'DESCRIPTION',
- 'BATCH_DATE',
- 'INSERT_DATE'"
+ "'id',
+ 'desc_name'
+ 'short_name',
+ 'reducing_limit',
+ 'limit_nemonic',
+ 'limit_reference',
+ 'description',
+ 'batch_date',
+ 'insert_date'"
];
diff --git a/Resources/views/pages/index_fasilitas.blade.php b/Resources/views/pages/index_fasilitas.blade.php
index db4ccb6..df35400 100644
--- a/Resources/views/pages/index_fasilitas.blade.php
+++ b/Resources/views/pages/index_fasilitas.blade.php
@@ -88,7 +88,7 @@
@@ -100,7 +100,7 @@