BUB-12 Creazione gestione Documenti allegati al movimento

This commit is contained in:
2022-03-14 20:15:20 +01:00
parent e97ffe2473
commit 3be3064505
7 changed files with 188 additions and 1 deletions

View File

@@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateDocumentisTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('documentis', function (Blueprint $table) {
$table->id();
$table->timestamps();
$table->foreignId('movimenti_id');
$table->string('descrizione');
$table->string('filename');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('documentis');
}
}