FEATURE: regenerated models for updated database structure

This commit is contained in:
Michal Kváček
2016-01-26 21:38:20 +01:00
parent 8bb87eb500
commit cdde6bcb33
8 changed files with 14 additions and 36 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ class ActionLog extends Model
protected $fillable = [ protected $fillable = [
'type_id', 'type_id',
'user_id', 'user_id',
'item_id' 'parameters'
]; ];
protected $guarded = []; protected $guarded = [];
+2 -1
View File
@@ -13,7 +13,8 @@ class ActionLogType extends Model
public $timestamps = false; public $timestamps = false;
protected $fillable = [ protected $fillable = [
'name' 'name',
'value'
]; ];
protected $guarded = []; protected $guarded = [];
+3 -3
View File
@@ -15,15 +15,15 @@ class Content extends Model
protected $fillable = [ protected $fillable = [
'user_id', 'user_id',
'module_handler', 'module_handler',
'published_from',
'published_to',
'title_photo', 'title_photo',
'title', 'title',
'url', 'url',
'meta_keywords', 'meta_keywords',
'meta_description', 'meta_description',
'module_settings',
'content', 'content',
'published_from', 'module_settings',
'published_to',
'status' 'status'
]; ];
@@ -5,16 +5,17 @@ namespace App\Models;
use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Model;
/** /**
* Class Migration * Class ContentHasCustomField
*/ */
class Migration extends Model class ContentHasCustomField extends Model
{ {
public $timestamps = false; public $timestamps = false;
protected $fillable = [ protected $fillable = [
'migration', 'contents_id',
'batch' 'custom_field_id',
'value'
]; ];
protected $guarded = []; protected $guarded = [];
+1 -1
View File
@@ -13,8 +13,8 @@ class CustomField extends Model
public $timestamps = false; public $timestamps = false;
protected $fillable = [ protected $fillable = [
'handler',
'name', 'name',
'type_id',
'description', 'description',
'default_value', 'default_value',
'regexp', 'regexp',
+1 -1
View File
@@ -14,7 +14,7 @@ class CustomFieldType extends Model
protected $fillable = [ protected $fillable = [
'name', 'name',
'custom_field_id' 'handler'
]; ];
protected $guarded = []; protected $guarded = [];
+1 -2
View File
@@ -14,8 +14,7 @@ class ModuleHasCustomField extends Model
protected $fillable = [ protected $fillable = [
'module_handler', 'module_handler',
'custom_field_id', 'custom_field_id'
'value'
]; ];
protected $guarded = []; protected $guarded = [];
-23
View File
@@ -1,23 +0,0 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
/**
* Class PasswordReset
*/
class PasswordReset extends Model
{
public $timestamps = true;
protected $fillable = [
'email',
'token'
];
protected $guarded = [];
}