<?php

namespace App\Models;

use App\Traits\Owned;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

enum PendingReportStatus: string {
    case Denied = 'denied';
    case Approval = 'approval';
    case Pending = 'pending';
    case Sent = 'sent';
    case NotForSend = 'not-send';
    case Other1 = 'other_1';
    case Other2 = 'other_2';
    case Other3 = 'other_3';
    case Other4 = 'other_4';
};

enum PendingReportType: string {
    case Singular = 'singular';
    case Daily = 'daily';
    case Weekly = 'weekly';
    case Monthly = 'monthly';
    case Quarterly = 'quarterly';
    case Yearly = 'yearly';
    case Carpet = 'carpet';
    case Other1 = 'other_1';
    case Other2 = 'other_2';
    case Other3 = 'other_3';
    case Other4 = 'other_4';
};

class PendingReport extends Model
{
    use SoftDeletes;
    use Owned;

    protected $fillable = [
        'organisation_id',
        'status',
        'report_type',
        'report_id',
        'year',
        'quarter',
        'month',
        'week',
        'day',
        'destination',
        'started_at',
        'finished_at'
    ];
}
