Aggiunto mappatura e prototipo filtro
This commit is contained in:
@@ -20,12 +20,14 @@ class CreateMovimentisTable extends Migration
|
||||
$table->unsignedBigInteger('mov_fk_categoria');
|
||||
$table->foreign('mov_fk_categoria')->references('id')->on('categories');
|
||||
$table->longText('mov_descrizione');
|
||||
$table->decimal('mov_importo',8,2);
|
||||
$table->decimal('mov_importo_dare',8,2);
|
||||
$table->decimal('mov_importo_avere',8,2);
|
||||
$table->unsignedBigInteger('mov_inserito_da');
|
||||
$table->foreign('mov_inserito_da')->references('id')->on('users');
|
||||
$table->unsignedBigInteger('mov_fk_tags');
|
||||
$table->foreign('mov_fk_tags')->references('id')->on('tags');
|
||||
$table->foreignId('conto_id')->constrained('contos');
|
||||
$table->foreignId('conto_id_da')->constrained('contos')->nullable();
|
||||
$table->foreignId('conto_id_a')->constrained('contos')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -14,6 +14,13 @@ return new class extends Migration
|
||||
Schema::create('import_rules', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->timestamps();
|
||||
$table->string('pattern');
|
||||
$table->unsignedBigInteger('category_id');
|
||||
$table->foreign('category_id')->references('id')->on('categories')->onDelete('cascade');
|
||||
// $table->unique(['pattern', 'category_id'], 'unique_import_rule');
|
||||
$table->string('description')->nullable(); // Optional description for the rule
|
||||
$table->boolean('is_active')->default(true); // Flag to enable/disable the rule
|
||||
$table->string('created_by')->nullable(); // User who created the rule
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user