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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$Obp5nNr8LwDPIrlHwIZLS.aupl3tWLJNjIeDEaBwpth80oK8ZQAEQ','user','ak_d5abba82b94ce8bf','2023-01-24 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$ah7yJtxvYMb1ZhVfMWdYKRASkrqZBiP/DYUYKyjzIzDC/q.aZ/Yd/','user','ak_5d898fa4c9f311f6','2023-12-23 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$KP2f1Z8oqGQIa7mNI6xpjI1TGllf./HoibulbksWKHtTAZXQQKY5I','user','ak_5a6b46ee480c9aa5','2023-05-07 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$/aAlytf4lU5kKLIlevLrkCCoTI1OF4ypuYQ03tNpEQkynIqsxb8Qz','user','ak_d868d954b5ecc874','2023-08-10 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$8xmPlDuYeur4dTPCNbOTzFPzffS7nQ.58emNqC7gSRN/ZF1CqNBn3','admin','ak_6a2e84633dca7312','2023-12-05 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$kIAbtytkTuU5Fm5685oAFHFG0A..8nrqc4MNmKE4YlmVTOC7VI/df','user','ak_80f5b1d684e1c67b','2023-11-28 10:22: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=47564;

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


