allerta-vvf/backend/app/Models/AvailabilityMinutesArchive.php

34 lines
620 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class AvailabilityMinutesArchive extends Model
{
use HasFactory;
public $timestamps = false;
/**
* The attributes that are mass assignable.
*
* @var array<int, string>
*/
protected $fillable = [
'availability_minutes',
'year',
'month'
];
/**
* Get the user.
*/
public function user(): BelongsTo
{
return $this->belongsTo(User::class);
}
}