CREATE TABLE supplier_ms.COMPANY_BANK_ACCOUNT
(
    ID           INT AUTO_INCREMENT NOT NULL,
    BANK_ID      INT                NULL,
    OPENING_BANK VARCHAR(255)       NULL,
    ACCOUNT      VARCHAR(255)       NULL,
    CONSTRAINT pk_company_bank_account PRIMARY KEY (ID)
);

ALTER TABLE supplier_ms.COMPANY_BANK_ACCOUNT
    ADD CONSTRAINT FK_COMPANY_BANK_ACCOUNT_ON_BANK FOREIGN KEY (BANK_ID) REFERENCES supplier_ms.BANK (ID);