table('promotion_contracts') ->addColumn('promotion_id', 'integer', ['signed' => false, 'null' => false]) ->addColumn('contract_id', 'integer', ['signed' => false, 'null' => false]) ->addColumn('created_at', 'datetime', ['null' => false, 'default' => 'CURRENT_TIMESTAMP']) ->addForeignKey('promotion_id', 'promotions', 'id', ['delete' => 'CASCADE', 'update' => 'CASCADE']) ->addForeignKey('contract_id', 'broker_contracts', 'id', ['delete' => 'CASCADE', 'update' => 'CASCADE']) ->create(); } }