add doc comments to models

This commit is contained in:
2018-07-14 18:50:25 +02:00
parent f12773ccd1
commit 25cb60d377
8 changed files with 78 additions and 62 deletions
+22 -2
View File
@@ -2,12 +2,32 @@
namespace App\Models;
use App\Models\Concerns\NotificationContext;
use App\Models\Concerns\Reportable;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model;
/**
* A data table object (referencing changesets and rows)
* A data table object (referencing revisions)
*
* @property int $id
* @property \Carbon\Carbon $created_at
* @property \Carbon\Carbon $updated_at
* @property int $owner_id
* @property int $ancestor_id
* @property int $revision_id
* @property string $title
* @property string $description
* @property string $license
* @property string $source_link
* @property User $owner
* @property Table $parentTable
* @property Table[]|Collection $forks
* @property Revision[]|Collection $revisions
* @property Revision $activeRevision
* @property Proposal[]|Collection $proposal
* @property TableComment[]|Collection $comments
* @property User[]|Collection $favouritingUsers
* @property User[]|Collection $discussionFollowers
*/
class Table extends Model
{