Files
kaunter/database/migrations/2020_10_07_055737_create_marhun_table.php
T
Zakwan Hamdan 60afe5d1ba Initial commit
2020-10-19 10:12:55 +08:00

44 lines
1.0 KiB
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateMarhunTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('marhun', function (Blueprint $table) {
$table->id();
$table->String('no_rujukan');
$table->String('marhun');
$table->String('note');
$table->boolean('rosak');
$table->boolean('putus');
$table->boolean('patah');
$table->boolean('permata');
$table->boolean('sebelah');
$table->String('karat');
$table->String('berat');
$table->float('harga');
$table->float('nilai_marhun');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('marhun');
}
}