Update 2021_12_14_041557_create_lelongs_table.php
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user