43 lines
1.1 KiB
PHP
43 lines
1.1 KiB
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
class CreateContrattisTable extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('contrattis', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->timestamps();
|
|
$table->string('numero', 100)->nullable();
|
|
$table->string('nome', 100);
|
|
$table->date('datainizio');
|
|
$table->date('datatermine');
|
|
$table->string('fornitore', 100)->default('text');
|
|
$table->string('tipo', 100)->default('utenze');
|
|
$table->decimal('importo', 5, 2);
|
|
$table->date('scadenzapagamento');
|
|
$table->string('stato', 100)->default('attivo');
|
|
$table->longText('note')->nullable();
|
|
$table->string('filename',255)->nullable();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('contrattis');
|
|
}
|
|
}
|