<?php
declare(strict_types=1);

return [
    'up' => "
ALTER TABLE members ADD COLUMN credit_limit DECIMAL(15,2) NOT NULL DEFAULT 0.00 AFTER membership_value;
ALTER TABLE members ADD COLUMN credit_balance DECIMAL(15,2) NOT NULL DEFAULT 0.00 AFTER credit_limit;

ALTER TABLE suppliers ADD COLUMN credit_limit DECIMAL(15,2) NOT NULL DEFAULT 0.00 AFTER payment_terms;
ALTER TABLE suppliers ADD COLUMN credit_balance DECIMAL(15,2) NOT NULL DEFAULT 0.00 AFTER credit_limit",
    'down' => "
ALTER TABLE members DROP COLUMN credit_balance;
ALTER TABLE members DROP COLUMN credit_limit;
ALTER TABLE suppliers DROP COLUMN credit_balance;
ALTER TABLE suppliers DROP COLUMN credit_limit",
];
