D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
tattooscyy
/
test
/
database
/
migrations
/
Filename :
2019_05_22_074345_create_contracts_table.php
back
Copy
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateContractsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('contracts', function (Blueprint $table) { $table->increments('id'); $table->string('name'); $table->string('email'); $table->string('phone'); $table->string('putdate'); $table->string('type'); $table->string('fact'); $table->enum('promo',[0,1])->default(1); $table->text('signature'); $table->integer('saloon_id'); $table->integer('user_id'); $table->string('more'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('contracts'); } }