Add LineItem CSV import and fix Unit API
This commit is contained in:
@@ -18,10 +18,13 @@ public function up(): void
|
||||
$table->boolean('is_section')->default(false);
|
||||
$table->string('title')->nullable();
|
||||
$table->string('description')->nullable();
|
||||
$table->integer('quantity')->default(1);
|
||||
$table->decimal('quantity')->default(1);
|
||||
$table->foreignId('unit_id')->nullable()->constrained()->nullOnDelete();
|
||||
$table->decimal('price', 10, 2)->nullable();
|
||||
$table->timestamps();
|
||||
|
||||
$table->index('position');
|
||||
$table->index('invoice_id');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user