Files
app-test-laravel/database/migrations/2021_03_17_053807_create_invoices_table.php
effendy-dev 461a740be0 first commit
2025-12-01 14:04:35 +07:00

43 lines
1020 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateInvoicesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('invoices', function (Blueprint $table) {
$table->id();
$table->string('customer_name');
$table->string('customer_mail');
$table->string('company');
$table->string('address');
$table->string('item');
$table->string('product_name');
$table->string('price');
$table->integer('quantity');
$table->string('total');
$table->string('payment');
$table->string('due');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('invoices');
}
}