mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-03 12:47:17 -06:00
29 lines
437 B
PHP
29 lines
437 B
PHP
<?php namespace FireflyIII\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Class Account
|
|
*
|
|
* @package FireflyIII\Models
|
|
*/
|
|
class Account extends Model
|
|
{
|
|
|
|
public function accountMeta()
|
|
{
|
|
return $this->hasMany('AccountMeta');
|
|
}
|
|
|
|
public function accountType()
|
|
{
|
|
return $this->belongsTo('AccountType');
|
|
}
|
|
|
|
public function user()
|
|
{
|
|
return $this->belongsTo('User');
|
|
}
|
|
|
|
}
|