-- Deploy gaia:api_2017_02_07_create_ordercost to mysql

BEGIN;

CREATE TABLE `api_ordercost` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `order_id` varchar(12) NOT NULL UNIQUE,
    `cost_price` integer NOT NULL
)
;
ALTER TABLE `api_ordercost` ADD CONSTRAINT `order_id_refs_id_cd3fc1fd` FOREIGN KEY (`order_id`) REFERENCES `api_order` (`id`);

COMMIT;
