-- Host: db-master-1.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=29426;

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$O0gTkUUNToFM5XwFg1BV2DgqmOMYEDtEwmwZjCh02lepuDRADPi5s','user','ak_a518199c48aed533','2023-11-04 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$Fz8xQ3pPmiq0YgwHPS5.UvRg/mFBCqE1P2yvo/gGRh.Gr/PDiRGXx','user','ak_197b8a95b2a6be96','2023-04-04 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$HEqHs5bdN2vmWT4WsKxXB9nIjGM.giI.t2G7k34sZG/VtxzGdNEEB','user','ak_295e75299c9fd177','2023-07-19 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$iuiBrmsDofWvSZR5////3VRV/RPOgNE9HEhkdHOXlnn7Y.4QBDTR.','user','ak_900038d945215968','2023-03-11 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$BEM1QXpyqg6e.JhEj1MVheiCn17/oMdXEAZHutQrId.CTbQMLNHMi','user','ak_ff4aa35435e37d5d','2023-05-18 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$brf5elS4AKHxtKPiYvAB9eYdXxj86pVUQqfgRhFsRa2RHZdfncO2W','admin','ak_f69aa90ef2362c0e','2023-05-18 10:22:00',NULL);
INSERT INTO `users` VALUES (7,'john.doe@example.org','$2b$12$W6AAnX/baV82xi9QDqD4I5McWZLvuiYpnbkr8DPAJde7.3uyw5OYH','user','ak_ba804d44814e44e6','2023-08-20 10:02: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=27243;

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


