creating tables

This commit is contained in:
2018-07-21 23:07:41 +02:00
parent 75afc67f31
commit 26488e5883
15 changed files with 215 additions and 48 deletions
+2
View File
@@ -19,6 +19,8 @@ use Illuminate\Database\Eloquent\Model;
*/
class ContentReport extends Model
{
protected $guarded = [];
/** Authoring user */
public function author()
{
+1
View File
@@ -23,6 +23,7 @@ use Illuminate\Database\Eloquent\Model;
class Proposal extends Model
{
use Reportable;
protected $guarded = [];
protected static function boot()
{
+2 -1
View File
@@ -15,7 +15,7 @@ use Riesjart\Relaquent\Model\Concerns\HasRelaquentRelationships;
* @property int $refs
* @property int $ancestor_id
* @property string $note
* @property string $index_column
* @property object $columns
* @property Revision|null $parentRevision
* @property Row[]|Collection $rows
* @property Proposal|null $sourceProposal - proposal that was used to create this revision
@@ -24,6 +24,7 @@ use Riesjart\Relaquent\Model\Concerns\HasRelaquentRelationships;
class Revision extends Model
{
use HasRelaquentRelationships;
protected $guarded = [];
protected static function boot()
{
+1
View File
@@ -13,5 +13,6 @@ use Illuminate\Database\Eloquent\Model;
*/
class Row extends Model
{
protected $guarded = [];
public $timestamps = false;
}
+3 -1
View File
@@ -15,10 +15,11 @@ use Illuminate\Database\Eloquent\Model;
* @property int $owner_id
* @property int $ancestor_id
* @property int $revision_id
* @property string $name
* @property string $title
* @property string $description
* @property string $license
* @property string $source_link
* @property string $origin
* @property User $owner
* @property Table $parentTable
* @property Table[]|Collection $forks
@@ -32,6 +33,7 @@ use Illuminate\Database\Eloquent\Model;
class Table extends Model
{
use Reportable;
protected $guarded = [];
protected static function boot()
{
+1
View File
@@ -24,6 +24,7 @@ use Illuminate\Database\Eloquent\Model;
class TableComment extends Model
{
use Reportable;
protected $guarded = [];
protected static function boot()
{