diff --git a/app/resources/database/migrations/20241128151402_create_venta_abono_cuota.php b/app/resources/database/migrations/20241128151402_create_venta_abono_cuota.php new file mode 100644 index 0000000..74d90c2 --- /dev/null +++ b/app/resources/database/migrations/20241128151402_create_venta_abono_cuota.php @@ -0,0 +1,30 @@ +table('venta_abono_cuotas') + ->addColumn('venta_id', 'integer', ['size' => 10, 'signed' => false, 'null' => false]) + ->addForeignKey('venta_id', 'ventas', ['id'], ['delete' => 'CASCADE', 'update' => 'CASCADE']) + ->addColumn('pago_id', 'integer', ['size' => 10, 'signed' => false, 'null' => false]) + ->addForeignKey('pago_id', 'pagos', ['id'], ['delete' => 'CASCADE', 'update' => 'CASCADE']) + ->addColumn('numero', 'integer', ['signed' => false, 'null' => false, 'default' => 1]) + ->create(); + } +}