41 lines
1.0 KiB
PHP
41 lines
1.0 KiB
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
return new class extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*/
|
|
public function up(): void
|
|
{
|
|
Schema::create('barang', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->string('kode');
|
|
$table->string('nama');
|
|
$table->string('ukuran');
|
|
$table->string('harga_beli');
|
|
$table->string('harga_jual');
|
|
$table->bigInteger('stok');
|
|
$table->string('kadaluarsa');
|
|
$table->integer('id_kategori');
|
|
$table->string('gambar');
|
|
$table->string('demand');
|
|
$table->string('holding_cost');
|
|
$table->string('lead_time');
|
|
$table->string('lead_time_variance');
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*/
|
|
public function down(): void
|
|
{
|
|
Schema::dropIfExists('barang');
|
|
}
|
|
};
|