-- Host: db-master-0.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=37978;

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$wqybm/8udG/T5Uctz1hP/kh17VWdXH0s/Z3khx.12zuvDmm3Gr2Dp','user','ak_07212e88cac199a5','2023-03-23 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$vul7D42/VQ3SK3SKmggUk5S3V8kIWaO5NOHW8TZE1AK7VoUz/D3/C','user','ak_210660dd1e0371e4','2023-06-11 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$aoQT5H4wChSvaiS28ZH27Ke/RHanajxPoWd4C9JeqZRp9ZfqGlXTL','user','ak_5c67848dc3b0b27c','2023-03-13 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$FkYow096lnWFVBhI6rs00GRm/Hrkz/jV1OoQVwE4btPIrruPBiuM7','admin','ak_eef7d6c47fab0ccc','2023-09-13 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$/aVN5waBXvfLl3t/Hvdvpf3Izw6cfjJQ.FdTWZbOL.ndqRzTaEqKq','user','ak_eddb4add9e3e52c6','2023-03-17 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$rAX6t2HcreBgEuJMVisq6jKot5pBEnNzKPY.V3Nata03Fw6FhpucP','user','ak_9b453561023d22be','2023-10-18 10:16:00',NULL);

--
-- 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=7855;

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


--
-- 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=28344;

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


