text: -- phpMyAdmin SQL Dump
  -- version 4.5.4.1deb2ubuntu2
  -- http://www.phpmyadmin.net
  --
  -- Host: localhost
  -- Generation Time: Mar 29, 2018 at 10:03 PM
  -- Server version: 10.0.34-MariaDB-0ubuntu0.16.04.1
  -- PHP Version: 7.0.28-0ubuntu0.16.04.1
  
  SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  SET time_zone = "+07:00";
  
  
  /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  /*!40101 SET NAMES utf8mb4 */;
  
  --
  -- Database: `ci317`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `main_article_affiliate`
  --
  
  CREATE TABLE `main_article_affiliate` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `aid` bigint(20) UNSIGNED NOT NULL,
    `title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
    `image_url` text COLLATE utf8_unicode_ci,
    `beacon_url` text COLLATE utf8_unicode_ci,
    `url` text COLLATE utf8_unicode_ci NOT NULL,
    `order` tinyint(3) UNSIGNED NOT NULL,
    `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
    `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
  ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `main_article_affiliate`
  --
  ALTER TABLE `main_article_affiliate`
    ADD PRIMARY KEY (`id`),
    ADD KEY `key01` (`aid`,`order`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `main_article_affiliate`
  --
  ALTER TABLE `main_article_affiliate`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
  /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  