increments('id'); $table->integer('application_id'); $table->string('step_key'); $table->string('month')->nullable(); $table->string('year')->nullable(); $table->decimal('amount', 15, 2)->default(0.00); $table->string('status'); $table->string('transaction_number')->nullable(); $table->string('odoo_move_id')->nullable(); $table->string('odoo_voucher_number')->nullable(); $table->integer('created_by')->nullable(); $table->text('odoo_response')->nullable(); $table->timestamps(); }); } if (!Schema::hasTable('odoo_jv_line_logs')) { Schema::create('odoo_jv_line_logs', function (Blueprint $table) { $table->increments('id'); $table->integer('odoo_jv_log_id'); $table->integer('sequence'); $table->integer('move_line_id'); $table->string('gl_code')->nullable(); $table->string('account')->nullable(); $table->decimal('debit', 15, 2)->default(0.00); $table->decimal('credit', 15, 2)->default(0.00); $table->timestamps(); }); } } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('odoo_jv_line_logs'); Schema::dropIfExists('odoo_jv_logs'); } }