Created
October 1, 2015 13:58
-
-
Save arysom/4a9f3541cf1b5bb36938 to your computer and use it in GitHub Desktop.
codeigniter simple cart
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- phpMyAdmin SQL Dump | |
| -- version 4.2.11 | |
| -- http://www.phpmyadmin.net | |
| -- | |
| -- Host: 127.0.0.1 | |
| -- Czas generowania: 01 Paź 2015, 15:57 | |
| -- Wersja serwera: 5.6.21 | |
| -- Wersja PHP: 5.6.3 | |
| SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; | |
| SET time_zone = "+00: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 utf8 */; | |
| -- | |
| -- Baza danych: `monkids` | |
| -- | |
| -- -------------------------------------------------------- | |
| -- | |
| -- Struktura tabeli dla tabeli `addresses` | |
| -- | |
| CREATE TABLE IF NOT EXISTS `addresses` ( | |
| `id` int(11) NOT NULL, | |
| `imie` text CHARACTER SET utf8 COLLATE utf8_polish_ci NOT NULL, | |
| `nazwisko` text CHARACTER SET utf8 COLLATE utf8_polish_ci NOT NULL, | |
| `firma` text NOT NULL, | |
| `address1` text NOT NULL, | |
| `address2` text NOT NULL, | |
| `miasto` text CHARACTER SET utf8 COLLATE utf8_polish_ci NOT NULL, | |
| `kodpocztowy` text CHARACTER SET utf8 COLLATE utf8_polish_ci NOT NULL, | |
| `kraj` text NOT NULL, | |
| `email` text CHARACTER SET utf8 COLLATE utf8_polish_ci NOT NULL, | |
| `telefon` text CHARACTER SET utf8 COLLATE utf8_polish_ci NOT NULL | |
| ) ENGINE=InnoDB AUTO_INCREMENT=104 DEFAULT CHARSET=utf8; | |
| -- -------------------------------------------------------- | |
| -- | |
| -- Struktura tabeli dla tabeli `orders` | |
| -- | |
| CREATE TABLE IF NOT EXISTS `orders` ( | |
| `id` int(11) NOT NULL, | |
| `created_at` datetime NOT NULL, | |
| `updated_at` datetime NOT NULL, | |
| `b_address_id` int(11) NOT NULL, | |
| `s_address_id` int(11) NOT NULL, | |
| `ship_info` text NOT NULL, | |
| `status` int(11) NOT NULL, | |
| `amount` decimal(10,2) NOT NULL, | |
| `currency` varchar(3) NOT NULL | |
| ) ENGINE=InnoDB AUTO_INCREMENT=101 DEFAULT CHARSET=utf8; | |
| -- -------------------------------------------------------- | |
| -- | |
| -- Struktura tabeli dla tabeli `order_items` | |
| -- | |
| CREATE TABLE IF NOT EXISTS `order_items` ( | |
| `id` int(11) NOT NULL, | |
| `product_id` text NOT NULL, | |
| `order_id` int(11) NOT NULL, | |
| `quantity` int(11) NOT NULL, | |
| `subtotal` decimal(10,2) NOT NULL, | |
| `currency` varchar(3) NOT NULL | |
| ) ENGINE=InnoDB AUTO_INCREMENT=89 DEFAULT CHARSET=utf8; | |
| -- | |
| -- Indeksy dla zrzutów tabel | |
| -- | |
| -- | |
| -- Indexes for table `addresses` | |
| -- | |
| ALTER TABLE `addresses` | |
| ADD PRIMARY KEY (`id`); | |
| -- | |
| -- Indexes for table `orders` | |
| -- | |
| ALTER TABLE `orders` | |
| ADD PRIMARY KEY (`id`); | |
| -- | |
| -- Indexes for table `order_items` | |
| -- | |
| ALTER TABLE `order_items` | |
| ADD PRIMARY KEY (`id`); | |
| -- | |
| -- AUTO_INCREMENT for dumped tables | |
| -- | |
| -- | |
| -- AUTO_INCREMENT dla tabeli `addresses` | |
| -- | |
| ALTER TABLE `addresses` | |
| MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=104; | |
| -- | |
| -- AUTO_INCREMENT dla tabeli `orders` | |
| -- | |
| ALTER TABLE `orders` | |
| MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=101; | |
| -- | |
| -- AUTO_INCREMENT dla tabeli `order_items` | |
| -- | |
| ALTER TABLE `order_items` | |
| MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=89; | |
| /*!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 */; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment