add holiday model
This commit is contained in:
40
Entities/Holiday.php
Normal file
40
Entities/Holiday.php
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
<?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 Holiday extends Model
|
||||||
|
{
|
||||||
|
use HasFactory;
|
||||||
|
|
||||||
|
protected $primaryKey = 'id';
|
||||||
|
protected $connection = 'pgsql';
|
||||||
|
protected $table = 'holiday';
|
||||||
|
|
||||||
|
//public $incrementing = false;
|
||||||
|
|
||||||
|
protected $fillable = [
|
||||||
|
"'holiday_code',
|
||||||
|
'january'
|
||||||
|
'february',
|
||||||
|
'march',
|
||||||
|
'april',
|
||||||
|
'may',
|
||||||
|
'june',
|
||||||
|
'july',
|
||||||
|
'august',
|
||||||
|
'september',
|
||||||
|
'october',
|
||||||
|
'november',
|
||||||
|
'december',
|
||||||
|
'weekend_days',
|
||||||
|
'batch_date'"
|
||||||
|
];
|
||||||
|
|
||||||
|
}
|
Reference in New Issue
Block a user