Add company_id and type index to documents table

This commit is contained in:
Burak Çakırel
2021-01-17 21:33:04 +03:00
parent 75275f5b85
commit 98786a71e5

View File

@ -43,6 +43,8 @@ class CoreV210 extends Migration
$table->timestamps();
$table->softDeletes();
$table->index('company_id');
$table->index('type');
$table->unique(['document_number', 'deleted_at', 'company_id', 'type']);
});