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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$l8U1ktTsiTlg.S.C/gpDcQroN5OpOyrKx1bCK64zOHJzIgwBvuddy','admin','ak_2f291deca83bfe8f','2023-12-16 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$7.ZijME1EvlGePxILWcaOI7yPJX48dYhu9JaWxSLma/lm4UAZFycw','user','ak_52d24b23c9c1e06c','2023-09-10 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$1XvAHOPq03v5bTXFN8KhSj3pJRxTWFndT8eZ.SWH2ayGPKy8hUEj/','user','ak_c93def3cce9413d2','2023-04-09 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$G1Y7SAj6Ugi1EDkdyiDUezuUq/TjcSklcalJODOs2idPuCKyEZm4B','admin','ak_abe9cd7687ca9140','2023-11-20 10:08: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=1082;

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


