feat: Implement order and invoice management, enhance addon features, and remove the 'Type' module.

This commit is contained in:
pbao9
2026-02-11 17:02:07 +07:00
parent 58a9aa685b
commit 556b2c02e6
47 changed files with 1367 additions and 497 deletions
@@ -15,18 +15,6 @@ return new class extends Migration {
//
Schema::create('invoice_item', function (Blueprint $table) {
$table->id()->autoIncrement();
// $table->bigInteger('invoice_id')->default(0)->index();
// $table->bigInteger('customer_id')->default(0)->index();
// $table->tinyInteger('type_id')->default(0)->index();
// $table->integer('product_id')->nullable();
// $table->integer('billing')->nullable();
// $table->integer('parent_id')->nullable();
// $table->integer('relid')->nullable();
// $table->text('description')->nullable();
// $table->integer('amount')->nullable();
// $table->integer('tax')->default(1);
// $table->integer('due_date');
$table->bigInteger('invoice_id')->default(0)->index();
$table->unsignedBigInteger('product_id')->nullable()->index();
$table->integer('months')->default(0);