You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.0 KiB
41 lines
1.0 KiB
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
class CreateOrders extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('orders', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->integer("customer_id")->nullable();
|
|
$table->integer("project_id")->nullable();
|
|
$table->integer("product_id")->nullable();
|
|
$table->integer("manager_id")->nullable();
|
|
$table->date("from_date")->nullable();
|
|
$table->date("to_date")->nullable();
|
|
$table->integer("status")->default(0);
|
|
$table->decimal("total")->nullable()->unsigned();
|
|
$table->timestamps();
|
|
$table->softDeletes();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('orders');
|
|
}
|
|
}
|