123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213 |
- UPDATE `business_settings` SET `value` = '2.0' WHERE `business_settings`.`type` = 'current_version';
- -- phpMyAdmin SQL Dump
- -- version 4.9.0.1
- -- https://www.phpmyadmin.net/
- --
- -- Host: 127.0.0.1
- -- Generation Time: Mar 08, 2020 at 11:37 AM
- -- Server version: 10.3.16-MariaDB
- -- PHP Version: 7.3.7
- SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
- SET AUTOCOMMIT = 0;
- START TRANSACTION;
- 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 utf8mb4 */;
- --
- -- Database: `shop`
- --
- -- --------------------------------------------------------
- --
- -- Table structure for table `addons`
- --
- CREATE TABLE `addons` (
- `id` int(11) NOT NULL,
- `name` varchar(255) COLLATE utf32_unicode_ci DEFAULT NULL,
- `unique_identifier` varchar(255) COLLATE utf32_unicode_ci DEFAULT NULL,
- `version` varchar(255) COLLATE utf32_unicode_ci DEFAULT NULL,
- `activated` int(1) NOT NULL DEFAULT 1,
- `image` varchar(1000) COLLATE utf32_unicode_ci DEFAULT NULL,
- `created_at` timestamp NULL DEFAULT current_timestamp(),
- `updated_at` timestamp NOT NULL DEFAULT current_timestamp()
- ) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;
- --
- -- Indexes for dumped tables
- --
- --
- -- Indexes for table `addons`
- --
- ALTER TABLE `addons`
- ADD PRIMARY KEY (`id`);
- --
- -- AUTO_INCREMENT for dumped tables
- --
- --
- -- AUTO_INCREMENT for table `addons`
- --
- ALTER TABLE `addons`
- MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
- COMMIT;
- /*!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 */;
- -- phpMyAdmin SQL Dump
- -- version 4.9.0.1
- -- https://www.phpmyadmin.net/
- --
- -- Host: 127.0.0.1
- -- Generation Time: Mar 08, 2020 at 11:38 AM
- -- Server version: 10.3.16-MariaDB
- -- PHP Version: 7.3.7
- SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
- SET AUTOCOMMIT = 0;
- START TRANSACTION;
- 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 utf8mb4 */;
- --
- -- Database: `shop`
- --
- -- --------------------------------------------------------
- --
- -- Table structure for table `attributes`
- --
- CREATE TABLE `attributes` (
- `id` int(11) NOT NULL,
- `name` varchar(255) COLLATE utf32_unicode_ci DEFAULT NULL,
- `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
- `updated_at` timestamp NOT NULL DEFAULT current_timestamp()
- ) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;
- --
- -- Dumping data for table `attributes`
- --
- INSERT INTO `attributes` (`id`, `name`, `created_at`, `updated_at`) VALUES
- (1, 'Size', '2020-02-24 05:55:07', '2020-02-24 05:55:07'),
- (2, 'Fabric', '2020-02-24 05:55:13', '2020-02-24 05:55:13');
- --
- -- Indexes for dumped tables
- --
- --
- -- Indexes for table `attributes`
- --
- ALTER TABLE `attributes`
- ADD PRIMARY KEY (`id`);
- --
- -- AUTO_INCREMENT for dumped tables
- --
- --
- -- AUTO_INCREMENT for table `attributes`
- --
- ALTER TABLE `attributes`
- MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
- COMMIT;
- /*!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 */;
- -- phpMyAdmin SQL Dump
- -- version 4.9.0.1
- -- https://www.phpmyadmin.net/
- --
- -- Host: 127.0.0.1
- -- Generation Time: Mar 08, 2020 at 11:43 AM
- -- Server version: 10.3.16-MariaDB
- -- PHP Version: 7.3.7
- SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
- SET AUTOCOMMIT = 0;
- START TRANSACTION;
- 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 utf8mb4 */;
- --
- -- Database: `shop`
- --
- -- --------------------------------------------------------
- --
- -- Table structure for table `product_stocks`
- --
- DROP TABLE IF EXISTS `product_stocks`;
- CREATE TABLE `product_stocks` (
- `id` int(11) NOT NULL,
- `product_id` int(11) NOT NULL,
- `variant` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
- `sku` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
- `price` double(10,2) NOT NULL DEFAULT 0.00,
- `qty` int(11) NOT NULL DEFAULT 0,
- `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
- `updated_at` timestamp NOT NULL DEFAULT current_timestamp()
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
- --
- -- Indexes for dumped tables
- --
- --
- -- Indexes for table `product_stocks`
- --
- ALTER TABLE `product_stocks`
- ADD PRIMARY KEY (`id`);
- --
- -- AUTO_INCREMENT for dumped tables
- --
- --
- -- AUTO_INCREMENT for table `product_stocks`
- --
- ALTER TABLE `product_stocks`
- MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
- COMMIT;
- /*!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 */;
- ALTER TABLE `products` ADD `variant_product` INT(1) NOT NULL DEFAULT '0' AFTER `purchase_price`, ADD `attributes` VARCHAR(1000) NULL DEFAULT '[]' AFTER `variant_product`;
- ALTER TABLE `users` ADD `referred_by` INT NULL DEFAULT NULL AFTER `id`;
- ALTER TABLE `users` ADD `referral_code` VARCHAR(255) NULL DEFAULT NULL AFTER `balance`;
|