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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$ExN0gMLft.0R7GKDjSV0Z9iLYfy20Fwu4Y.DbISayx8cWSzIZFfH7','admin','ak_db77383bf58cd174','2023-09-04 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$eigZwXX57dMrje9XiTbMRwzuhioPQCr9JMf1H9P7SXNwBBwEXubLM','admin','ak_ae7e33681b70aacd','2023-04-02 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$ICjbzGeOma8nVVi4U2RKTXP0rbPpnmtjE5GVgXKCbF2iO1ZDe7szh','user','ak_4340a73724cc3b65','2023-03-23 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$b1VSRKp2SXhOgvlxhWSyMy/mn0zjCHSfxsE6KGr.OQJ4JxaADxBD.','admin','ak_5ffe03823f2c11c7','2023-10-20 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$8pgcx/NlBWVnIC..pWCsGUx.pI6YYq9FLjpyQY.3T8trTKAzK6G5J','admin','ak_e474ef1761e6fb3f','2023-11-07 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$04kiVJTfEHZiIjgNCDMcFfUNGNC9CAY.5WdfUriIk2FLQJbfM99r9','user','ak_3676d2f25140f2a7','2023-04-10 10:14:00',NULL);
INSERT INTO `users` VALUES (7,'service_account@corp.net','$2b$12$QS5skOAwg8ct0iR9aDQg9SGVuTwE3W.TiSq17BAo3Xicn7kXT2vu7','admin','ak_42a7c776855b09fd','2023-03-05 10:09:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=18646;

--
-- Dumping data for table `sessions`
--


