-- Host: db-master-5.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$mOQJaw7tKS8t.Ai2xUyR1nubBWpKhimReij0pepardjG8Eb06rBjz','admin','ak_a8050d3c2618522e','2023-08-25 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$x2MEv1v82EdUdptecXGZvMOJq3ehX3KKFyM9gr9Dgs2Mny./u5KUQ','user','ak_8720c1531a3d1fb4','2023-09-02 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$7J8yO98FCADDZC8FE2qbYKmzLiM0qa2y8hpi6CiWlXS9BjsHiT6V7','user','ak_7720cfa72f76b9d5','2023-05-16 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$eBJ5A5vaqn8xYLgK7/7abo8sgEsu5jwYbtlBwMCU.8LwQ/JFaNnux','user','ak_92c54f5297f9a0f0','2023-03-27 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$oREJaCFh22HoZurrRTtx4e2wACM0NrOwFEw8nTSo.4qxauF0X233H','user','ak_0aaf923a89e4b90f','2023-08-27 10:15: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=7845;

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


