-- Host: db-master-7.internal    Database: ecommerce


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

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


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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$qwkuFL9vSqk8VRKnJ6cU8jawYSFaQixK0ixL6XncakmAkv5lhIqt7','admin','ak_026fb49a9638a9a9','2023-02-24 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$fNB8GVAPTc1i4lLhzVVDmba.X7APXZufyPREsQLOaZ651QnHIeyek','user','ak_87b0f7da1deb8733','2023-11-19 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$rTAvjQvYET7cGxWCHMGHF2RcvkzYl7zRbNDuWZRnd3E5/iKahjtpJ','admin','ak_6b56517bbad8839c','2023-06-13 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$B5FimRYVWIisiCon3X1fXZmOD1yizoR7J4363LdkB7XP8NtTfyf8S','user','ak_60b4cd02791bfd63','2023-01-07 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$Q2xO6taW0WRsP4A3PQed1CzrpD9jZ6pTDnAYeBcyY5kwRO11ctiOK','user','ak_7850b49b30e8f69b','2023-05-04 10:13:00',NULL);

