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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$nyt2qsj/pkXArPTbwzwTzZKgEinUNYdtObErEix1781n8OlaBZfof','admin','ak_4c341e39b8835b95','2023-05-19 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$EyyuZNAUFBJgoEYV/b0.H/xbILoB2q03VqyRt0aJLS5NixorOcdWh','admin','ak_e4a00f0d88662dbb','2023-03-05 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$Ophsei.B23ce8hu5rO4l2Mn2YGOpGF4kILRDgPdpm4rNL7Gh6ECES','user','ak_79ee0c08250824f5','2023-04-20 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$SykTkxeCqq/AREfUZAwZpa5B8cIPLZENLmjgIk4y1rvay64s2x6VI','user','ak_bc0060ce15990042','2023-01-27 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$DVfCg.CXRuFvAcJRlzinhD7IjD1qGCS6S9hA/cCzdRmRlOfpd1M22','user','ak_01c97472b52c39a1','2023-09-08 10:07: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=44836;

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


