-- phpMyAdmin SQL Dump
-- version 4.8.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Mar 17, 2019 at 06:26 PM
-- Server version: 10.1.34-MariaDB
-- PHP Version: 5.6.37

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";

--
-- Database: `smart_va`
--

-- --------------------------------------------------------

--
-- Table structure for table `phpvms_codeshares`
--

CREATE TABLE `phpvms_codeshares` (
  `id` int(11) NOT NULL,
  `schedid` int(11) NOT NULL,
  `airline` varchar(50) NOT NULL,
  `operator` varchar(5) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `phpvms_codeshare_airlines`
--

CREATE TABLE `phpvms_codeshare_airlines` (
  `id` int(11) NOT NULL,
  `icao` varchar(5) NOT NULL,
  `name` varchar(50) NOT NULL,
  `image` varchar(350) NOT NULL DEFAULT 'https://i.pinimg.com/originals/56/25/62/562562fe4c075c4161452978ad5c3796.jpg',
  `flights` int(11) NOT NULL,
  `active` int(11) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Indexes for dumped tables
--

--
-- Indexes for table `phpvms_codeshares`
--
ALTER TABLE `phpvms_codeshares`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `phpvms_codeshare_airlines`
--
ALTER TABLE `phpvms_codeshare_airlines`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `phpvms_codeshares`
--
ALTER TABLE `phpvms_codeshares`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `phpvms_codeshare_airlines`
--
ALTER TABLE `phpvms_codeshare_airlines`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
COMMIT;
