mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim-api.git
synced 2026-08-30 01:44:03 +00:00
added model, migration
This commit is contained in:
@@ -12,4 +12,14 @@ class Decision extends Model
|
||||
'decision_type',
|
||||
'description',
|
||||
];
|
||||
|
||||
public function warehousearr()
|
||||
{
|
||||
return $this->hasOne('App\Warehousearr');
|
||||
}
|
||||
|
||||
public function decisionitem()
|
||||
{
|
||||
return $this->hasMany('App\Decisionitem');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,4 +12,9 @@ class Decisionitem extends Model
|
||||
'wi_id',
|
||||
'num_of_item',
|
||||
];
|
||||
|
||||
public function decision()
|
||||
{
|
||||
return $this->belongsTo('App\Decision');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,5 +18,18 @@ class Warehousearr extends Model
|
||||
'image',
|
||||
];
|
||||
|
||||
public function warehouseitem()
|
||||
{
|
||||
return $this->hasMany('App\Warehouseitem');
|
||||
}
|
||||
|
||||
public function decision()
|
||||
{
|
||||
return $this->hasOne('App\Decision');
|
||||
}
|
||||
|
||||
public function so()
|
||||
{
|
||||
return $this->belongsTo('App\So');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,4 +20,9 @@ class Warehouseitem extends Model
|
||||
'status',
|
||||
'image',
|
||||
];
|
||||
|
||||
public function warehousearr()
|
||||
{
|
||||
return $this->belongsTo('App\Warehousearr');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,7 +17,10 @@ class CreateUserVerificationsTable extends Migration
|
||||
$table->increments('id');
|
||||
$table->integer('user_id')->unsigned();
|
||||
$table->string('token');
|
||||
$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');
|
||||
$table->foreign('user_id')
|
||||
->references('id')
|
||||
->on('users')
|
||||
->onDelete('cascade');
|
||||
});
|
||||
Schema::table('users', function (Blueprint $table) {
|
||||
$table->boolean('is_verified')->default(0);
|
||||
|
||||
Generated
+14057
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user