added primary keys to all models
This commit is contained in:
@@ -11,6 +11,9 @@ class AvailableUserPermission extends Model
|
||||
*/
|
||||
protected $table = 'available_user_permissions';
|
||||
|
||||
//Primary Key
|
||||
public $primaryKey = 'id';
|
||||
|
||||
/**
|
||||
* Timestamps enabled for the rows
|
||||
*/
|
||||
|
||||
@@ -9,6 +9,9 @@ class AvailableUserRole extends Model
|
||||
//Table Name
|
||||
protected $table = 'available_user_roles';
|
||||
|
||||
//Primary Key
|
||||
public $primaryKey = 'id';
|
||||
|
||||
//Timestamps
|
||||
public $timestamps = false;
|
||||
|
||||
|
||||
@@ -22,6 +22,9 @@ class User extends Authenticatable
|
||||
*/
|
||||
protected $table = 'users';
|
||||
|
||||
//Primary Key
|
||||
public $primaryKey = 'id';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
|
||||
@@ -9,6 +9,10 @@ class UserAlt extends Model
|
||||
//Table Name
|
||||
public $table = 'user_alts';
|
||||
|
||||
//Primary Key
|
||||
public $primaryKey = 'id';
|
||||
|
||||
//Timestamps
|
||||
public $timestamps = false;
|
||||
|
||||
/**
|
||||
|
||||
@@ -11,6 +11,9 @@ class UserPermission extends Model
|
||||
*/
|
||||
protected $table = 'user_permissions';
|
||||
|
||||
//Primary Key
|
||||
public $primaryKey = 'id';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable
|
||||
*
|
||||
|
||||
@@ -11,6 +11,14 @@ class UserRole extends Model
|
||||
*/
|
||||
protected $table = 'user_roles';
|
||||
|
||||
//Primary Key
|
||||
public $primaryKey = 'id';
|
||||
|
||||
/**
|
||||
* Attributes which are mass assignable
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = [
|
||||
'character_id',
|
||||
'role',
|
||||
|
||||
Reference in New Issue
Block a user