distribusi
This commit is contained in:
@@ -6,22 +6,23 @@ use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration {
|
||||
public function up(): void {
|
||||
Schema::create('distributions', function (Blueprint $table) {
|
||||
Schema::create('distribusi', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->unsignedBigInteger('farmer_id')->nullable();
|
||||
$table->string('farmer_name')->nullable();
|
||||
$table->unsignedBigInteger('petani_id')->nullable();
|
||||
$table->unsignedBigInteger('panen_id')->nullable();
|
||||
$table->string('nama_pengirim')->nullable();
|
||||
$table->unsignedBigInteger('offtaker_id')->nullable();
|
||||
$table->string('offtaker_name')->nullable();
|
||||
$table->string('commodity_name');
|
||||
$table->double('quantity_kg')->default(0);
|
||||
$table->string('farmer_grade')->nullable();
|
||||
$table->string('offtaker_grade')->nullable();
|
||||
$table->text('grade_difference_reason')->nullable();
|
||||
$table->double('price_per_kg')->default(0);
|
||||
$table->double('total_value')->default(0);
|
||||
$table->date('distribution_date')->nullable();
|
||||
$table->date('received_date')->nullable();
|
||||
$table->text('notes')->nullable();
|
||||
$table->string('nama_offtaker')->nullable();
|
||||
$table->string('komoditas_id');
|
||||
$table->double('berat_kg')->default(0);
|
||||
$table->string('grade_petani')->nullable();
|
||||
$table->string('grade_offtaker')->nullable();
|
||||
$table->text('alasan')->nullable();
|
||||
$table->double('harga_per_kg')->default(0);
|
||||
$table->double('total')->default(0);
|
||||
$table->date('tgl_distribusi')->nullable();
|
||||
$table->date('tgl_terima')->nullable();
|
||||
$table->text('catatan')->nullable();
|
||||
$table->string('status')->nullable();
|
||||
$table->string('sync_status')->default('pending');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user