ubah entity category

This commit is contained in:
KhatamNugraha
2024-07-12 09:21:26 +07:00
parent 4992ccd839
commit 7866ed565e
3 changed files with 24 additions and 24 deletions

View File

@ -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');
// }
}