1234567891011121314151617181920212223242526272829 |
- DROP TABLE `carts`;
- CREATE TABLE `carts` (
- `id` int(11) UNSIGNED NOT NULL,
- `owner_id` int(11) DEFAULT NULL,
- `user_id` int(11) DEFAULT NULL,
- `address_id` int(11) NOT NULL DEFAULT '0',
- `product_id` int(11) DEFAULT NULL,
- `variation` text COLLATE utf8_unicode_ci,
- `price` double(8,2) DEFAULT '0.00',
- `tax` double(8,2) DEFAULT '0.00',
- `shipping_cost` double(8,2) DEFAULT '0.00',
- `discount` double(10,2) NOT NULL DEFAULT '0.00',
- `coupon_code` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
- `coupon_applied` tinyint(4) NOT NULL DEFAULT '0',
- `quantity` int(11) NOT NULL DEFAULT '0',
- `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
- `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
- ALTER TABLE `carts`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `carts`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=57;
- UPDATE `business_settings` SET `value` = '4.3' WHERE `business_settings`.`type` = 'current_version';
- COMMIT;
|