1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 08:21:34 +02:00
invoiceninja/app/Models/AccountToken.php
2016-05-08 21:50:35 +03:00

25 lines
447 B
PHP

<?php namespace App\Models;
use Illuminate\Database\Eloquent\SoftDeletes;
class AccountToken extends EntityModel
{
use SoftDeletes;
protected $dates = ['deleted_at'];
public function getEntityType()
{
return ENTITY_TOKEN;
}
public function account()
{
return $this->belongsTo('App\Models\Account');
}
public function user()
{
return $this->belongsTo('App\Models\User');
}
}