D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
forge
/
emedical.dentostock.com
/
database
/
migrations
/
Filename :
2020_02_12_093436_create_taxes_table.php
back
Copy
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateTaxesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('taxes', function (Blueprint $table) { $table->bigIncrements('id'); $table->bigInteger('company_id'); $table->string('name'); $table->double('rate', 15, 4); $table->boolean('enabled'); $table->string('type')->default('normal'); $table->timestamps(); $table->index('company_id'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('taxes'); } }