BEGIN;

CREATE TABLE `pay_settlementextra` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `settlement_id` varchar(12) NOT NULL UNIQUE,
    `idfa` varchar(64) NOT NULL,
    `idfv` varchar(64) NOT NULL,
    `current_city_id` varchar(40) NOT NULL,
    `channel` varchar(40) NOT NULL
)
;
ALTER TABLE `pay_settlementextra` ADD CONSTRAINT `settlement_id_refs_id_0ba2a69f` FOREIGN KEY (`settlement_id`) REFERENCES `api_settlement` (`id`);


COMMIT;