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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$IC0eZnqP8qvqTUNLcMX3th87Gxv8KaHLnJerFi65GV4SDLe3y4adN','user','ak_dae9b42918a0a7f6','2023-12-11 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$fKoCpwjKXmIJ/rwJMLCQ6PkLl5p9.OaUiN6Zgpn9RiXJXNDpmlmc.','admin','ak_162e377686bb555e','2023-05-13 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$4vezhXhi7saUU7hIfMIEBY/AR2ct2s9PWpiyHHWglUR.dgNj2c2JO','admin','ak_c242dde493f55f27','2023-09-17 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$LhuNweKUUVeF09SiGbUbwCn37VML0dxkcVrN3Le8r4FXAysrunIlu','user','ak_d919500221ec00a2','2023-05-15 10:13: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=36360;

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


