firefly-iii/app/Models/Telemetry.php

76 lines
2.4 KiB
PHP
Raw Normal View History

<?php
2020-06-30 12:05:35 -05:00
/**
* Telemetry.php
2020-06-30 12:05:35 -05:00
* Copyright (c) 2020 james@firefly-iii.org
*
* This file is part of Firefly III (https://github.com/firefly-iii).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
2020-06-30 12:05:35 -05:00
declare(strict_types=1);
namespace FireflyIII\Models;
2020-03-25 00:58:29 -05:00
use Eloquent;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
2020-03-25 00:58:29 -05:00
use Illuminate\Support\Carbon;
/**
2020-12-03 23:20:44 -06:00
* FireflyIII\Models\Telemetry
2020-03-25 00:58:29 -05:00
*
2020-12-03 23:20:44 -06:00
* @property int $id
2020-03-25 00:58:29 -05:00
* @property Carbon|null $created_at
* @property Carbon|null $updated_at
* @property Carbon|null $submitted
2020-12-03 23:20:44 -06:00
* @property int|null $user_id
* @property string $installation_id
* @property string $type
* @property string $key
* @property array $value
2020-03-25 00:58:29 -05:00
* @method static Builder|Telemetry newModelQuery()
* @method static Builder|Telemetry newQuery()
* @method static Builder|Telemetry query()
* @method static Builder|Telemetry whereCreatedAt($value)
* @method static Builder|Telemetry whereId($value)
* @method static Builder|Telemetry whereInstallationId($value)
* @method static Builder|Telemetry whereKey($value)
* @method static Builder|Telemetry whereSubmitted($value)
* @method static Builder|Telemetry whereType($value)
* @method static Builder|Telemetry whereUpdatedAt($value)
* @method static Builder|Telemetry whereUserId($value)
* @method static Builder|Telemetry whereValue($value)
* @mixin Eloquent
*/
class Telemetry extends Model
{
2020-03-21 09:42:37 -05:00
/** @var string */
protected $table = 'telemetry';
2020-03-21 09:42:37 -05:00
/** @var array */
protected $fillable = ['installation_id', 'submitted', 'user_id', 'key', 'type', 'value'];
/**
* The attributes that should be cast to native types.
*
* @var array
*/
protected $casts
= [
'submitted' => 'datetime',
'value' => 'array',
];
}