관리-도구
편집 파일: 2024_02_01_001414_create_transfer_money_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateTransferMoneyTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('transfer_money', function(Blueprint $table) { $table->engine = 'InnoDB'; $table->integer('id', true); $table->integer('from_account_id')->index('from_account_id'); $table->integer('to_account_id')->index('to_account_id'); $table->date('date'); $table->float('amount', 10, 0); $table->timestamps(6); $table->softDeletes(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('transfer_money'); } }