mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-31 19:27:51 -06:00
37 lines
923 B
PHP
37 lines
923 B
PHP
|
<?php
|
||
|
/**
|
||
|
* TransactionJournalMeta.php
|
||
|
* Copyright (C) 2016 Sander Dorigo
|
||
|
*
|
||
|
* This software may be modified and distributed under the terms
|
||
|
* of the MIT license. See the LICENSE file for details.
|
||
|
*/
|
||
|
|
||
|
namespace FireflyIII\Models;
|
||
|
|
||
|
use Illuminate\Database\Eloquent\Model;
|
||
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||
|
|
||
|
/**
|
||
|
* Class TransactionJournalMeta
|
||
|
*
|
||
|
* @package FireflyIII\Models
|
||
|
* @property-read \FireflyIII\Models\TransactionJournal $transactionjournal
|
||
|
*/
|
||
|
class TransactionJournalMeta extends Model
|
||
|
{
|
||
|
|
||
|
protected $dates = ['created_at', 'updated_at'];
|
||
|
protected $fillable = ['transaction_journal_id', 'name', 'data'];
|
||
|
protected $table = 'journal_meta';
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
||
|
*/
|
||
|
public function transactionjournal(): BelongsTo
|
||
|
{
|
||
|
return $this->belongsTo('FireflyIII\Models\TransactionJournal');
|
||
|
}
|
||
|
}
|