35 lines
742 B
PHP
35 lines
742 B
PHP
<?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 Category extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $connection = 'pgsql';
|
|
protected $table = 'category';
|
|
protected $primaryKey = 'id';
|
|
|
|
//public $incrementing = false;
|
|
|
|
protected $fillable = [
|
|
"'id',
|
|
'description'
|
|
'short_name',"
|
|
];
|
|
|
|
|
|
// public function customers(): BelongsTo
|
|
// {
|
|
// return $this->belongsTo(Customer::class, 'CUSTOMER_NO');
|
|
// }
|
|
|
|
|
|
} |