From 41b473281dd0d3d628d88599a72f65d62a98a3bd Mon Sep 17 00:00:00 2001 From: nishaMuhd Date: Tue, 16 Aug 2022 15:48:52 +0800 Subject: [PATCH] Update 2021_12_14_041557_create_lelongs_table.php --- ...2021_12_14_041557_create_lelongs_table.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/database/migrations/2021_12_14_041557_create_lelongs_table.php b/database/migrations/2021_12_14_041557_create_lelongs_table.php index f40037b6..d7125b7b 100644 --- a/database/migrations/2021_12_14_041557_create_lelongs_table.php +++ b/database/migrations/2021_12_14_041557_create_lelongs_table.php @@ -13,6 +13,24 @@ class CreateLelongsTable extends Migration */ public function up() { + Schema::create('taklaku', function (Blueprint $table) { + $table->bigIncrements('id'); + $table->unsignedBigInteger('lelong_id')->unsigned(); + $table->string('kodcaw'); + $table->string('norujukan'); + $table->date('t_lelong'); + $table->intger('status'); + $table->integer('fasa')->default(0); + $table->timestamps(); + + $table->foreign('caw_id') + ->references('id')->on('cawangan') + ->onDelete('cascade'); + + $table->foreign('lelong_id') + ->references('id')->on('lelong') + ->onDelete('cascade'); + Schema::create('lelong', function (Blueprint $table) { $table->bigIncrements('id'); $table->date('tarikh_lelong'); @@ -26,6 +44,7 @@ class CreateLelongsTable extends Migration $table->integer('sts_lelong')->default(0); //1= start, 2 = jana pemenang, 3 = senarai pemenang $table->integer('fasa')->default(0); $table->timestamps(); + }); Schema::create('cawangan_lelong', function (Blueprint $table) {