mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim-api.git
synced 2026-08-31 18:34:14 +00:00
complete the model, controller, and migration
This commit is contained in:
+8
@@ -16,6 +16,14 @@ class CreateSoitemsTable extends Migration
|
||||
Schema::create('soitems', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
|
||||
// foreign key for the so table
|
||||
$table->unsignedInteger('so_id');
|
||||
$table->foreign('so_id')
|
||||
->references('id')->on('sos')
|
||||
->onDelete('cascade')
|
||||
->onUpdate('cascade');
|
||||
$table->Integer('status')->default('0');
|
||||
|
||||
//Item details
|
||||
$table->integer('order_id');
|
||||
$table->integer('brand_no');
|
||||
Reference in New Issue
Block a user