-- Host: db-master-7.internal    Database: ecommerce


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `role` enum('admin','user','moderator') DEFAULT 'user',
  `api_key` varchar(64) DEFAULT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=42665;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$10Gql1RjdTk8gF0aPmdaCNIdHNz4f1d4ak/XF2nRO1Y/Uw/9th4wW','user','ak_d103d00bfe56c2d7','2023-04-09 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$meh2c44C1zq.Cix31s8NRgpISVal9jv64vJfixDQglzBhtZCsQq3p','admin','ak_58f63368166271a8','2023-07-24 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$2aIloe3bx7OtMhJpbbmh7jl1rmFiWATaBRFDQ1gfj4Alw836ZhkRH','user','ak_749fdf4f3be99fd3','2023-06-04 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$bXdf2bpAEX9qABneY11iX.JONs6vPgR1gHxb.xt68gyNBFflFWkeL','user','ak_592513778f4b9d1e','2023-05-07 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$w8FogbVaKacLlOPWYEN9FDskwwmEdF7D40.LY6.aiXCIvxboJ7Cba','user','ak_db912c12dd99c53f','2023-10-23 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$uZVx9De.7MwHx0CLl6l8SpEj3vqgotFJcT5y97iBTbfyL4B4j4CGF','user','ak_0848b143ea84936d','2023-09-23 10:01:00',NULL);
INSERT INTO `users` VALUES (7,'admin@corp.net','$2b$12$pOVPgV7nYs1lW5em0K33CeNSEVGSewgVGYp4QhSzw1ZubU2CQ0Bwh','user','ak_1ed75a70a7e99728','2023-08-17 10:18:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=15274;

--
-- Dumping data for table `products`
--


--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` bigint unsigned NOT NULL,
  `stripe_token` varchar(128) DEFAULT NULL,
  `amount` decimal(10,2) NOT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=18652;

--
-- Dumping data for table `payments`
--


