CREATE TABLE IF NOT EXISTS `articles` (
    `id`           INT(11) NOT NULL AUTO_INCREMENT,
    `slug`         VARCHAR(255) NOT NULL UNIQUE,
    `title`        VARCHAR(500) NOT NULL,
    `page_title`   VARCHAR(500) NOT NULL DEFAULT '',
    `description`  TEXT NULL,
    `content`      LONGTEXT NOT NULL,
    `date_created` DATE NOT NULL,
    `date_updated` DATE NOT NULL,
    `reading_time` INT(11) NOT NULL DEFAULT 5,
    `image`        VARCHAR(300) NOT NULL DEFAULT '',
    `author_name`  VARCHAR(200) NOT NULL DEFAULT 'Станислав Дмитриев',
    `author_img`   VARCHAR(300) NOT NULL DEFAULT '/images/articles/rukofodJW.png',
    `author_job`   VARCHAR(200) NOT NULL DEFAULT 'руководитель JoyWork',
    `published`    TINYINT(1) NOT NULL DEFAULT 1,
    `sort_order`   INT(11) NOT NULL DEFAULT 0,
    PRIMARY KEY (`id`),
    KEY `idx_slug` (`slug`),
    KEY `idx_published` (`published`),
    KEY `idx_sort_order` (`sort_order`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
