table('phone_reliability_history') ->addColumn('id_user', 'integer', ['null' => false]) ->addColumn('id_phone', 'integer', ['null' => false]) ->addColumn('type', 'string', ['null' => false, 'limit' => 100]) ->addColumn('created_at', 'timestamp', ['null' => false, 'default' => 'CURRENT_TIMESTAMP']) ->addColumn('updated_at', 'timestamp', ['null' => true, 'update' => 'CURRENT_TIMESTAMP']) ->addForeignKey('id_user', 'user', 'id', ['delete' => 'CASCADE', 'update' => 'CASCADE']) ->addForeignKey('id_phone', 'phone', 'id', ['delete' => 'CASCADE', 'update' => 'CASCADE']) ->create(); } }