-- +migrate Up
-- please read this article to understand why we use VARCHAR(191)
-- https://www.grouparoo.com/blog/varchar-191#why-varchar-and-not-text
CREATE TABLE `orders` (
                          `id`            INT PRIMARY KEY AUTO_INCREMENT,
                          `name`          VARCHAR (191),
                          `price`         INT NOT NULL ,
                          `is_active`     INT NOT NULL DEFAULT 1,

                          `created_at`    TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
                          `updated_at`    TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP

);

-- +migrate Down
DROP TABLE `orders`;
