-- Host: db-master-9.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=3103;

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$KVwY0kTc1ReeqfW/ZrUG0dZjvYeOHuLEtU.xgTMJ6wb.HtSr5a1jR','user','ak_95d8e476623bfa54','2023-07-26 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$K8PDIrAZMCinqKLQQ2zOZduey.AJKXUe4XblJmM0EzoG.NX3CNLPE','user','ak_5e7d1a7bab9c5439','2023-02-07 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$H8Il/ny4oOvVT.WLRC3hNACMBRuaP88/kAqrcMz4pgN7GRGgyZ8Lf','user','ak_248fdd95de744131','2023-01-14 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$5Bl3QfxP/k5r0vp2NFHSbTL3PcXDA1.YfyDeObCjHnMQq0mujmA9k','admin','ak_a53e38c58f9ea0ac','2023-01-08 10:18: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=26802;

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


