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


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

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$Gq97kDHb7GA0Xu0rPOGA52lajrl3250Cv2ZXxfY6J0MdJpywF676t','admin','ak_d620e8831cbebb8b','2023-02-09 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$hirljbIY2RjQo.SxX.dCYMQVJk.OfCEjDomznm84a8zIHu7juQ4Cw','user','ak_d69b619f43657e0a','2023-12-25 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$wvWzk.tr.WVLFrHilUYCeKRs0fGd5SNLt9xiGIsmFe4D4b1GuNvHX','user','ak_07220d49350b7525','2023-11-02 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$5H4cgsppVvMgVZpNw3l.Xe/K4TB3PihvAtHYasCPkhEZmPirU3cTo','user','ak_708f96154a295c04','2023-08-26 10:12:00',NULL);

