/
home
/
sjslayjy
/
public_html
/
devlok
/
database
/
migrations
/
Upload File
HOME
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateRemitsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('remits', function (Blueprint $table) { $table->bigIncrements('id'); $table->date('date'); $table->integer('lot'); $table->string('business_transaction'); $table->float('amount',10,2); $table->string('cheque_no'); $table->date('cheque_date'); $table->string('bank'); $table->integer('dealer_code'); $table->timestamp('created_at')->default(DB::raw('CURRENT_TIMESTAMP')); $table->timestamp('updated_at')->default(DB::raw('CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP')); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('remits'); } }