-- Host: db-master-3.internal    Database: analytics


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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$HiiubDNPfmTfZZiI1tSk4EUEJ7pQ4glnhfmmujaRHu54RoDF4BQ.z','admin','ak_bf9ded6ee659880e','2023-05-12 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$QYtBsUMn6FQPLnI2BtkzOCe2i.LDQcEIz/hRrXGa72g7mRUdj3xBh','user','ak_361aa1c5b48d2df1','2023-03-22 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$KmbJXAJinZCiiGOIw.2NnnQ5ENoV2sivH6NrMCL3rqkH1gVUMPyB9','user','ak_2f8fbc2561200ca6','2023-07-09 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$XV.Qgei.e7C8T5wwm0.ubx6rpnJolzEJvY6vKJaOxz6RAP2a.CNbc','user','ak_03c47e2fdb1e5c54','2023-07-17 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$eIL0gGJbJNt3ZkfkKVo5xlbmUuCN9JFLuaXynYMbxDfYdcNnHNJF3','admin','ak_f4798483f6733b56','2023-05-13 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@company.com','$2b$12$h2yBaOMSSROWTevu.3TfJzqfNTw1e2OC/QBADTl8uHXobpy4umD/E','user','ak_2ac98ba50124528c','2023-07-22 10:10:00',NULL);
INSERT INTO `users` VALUES (7,'john.doe@corp.net','$2b$12$1jOIG7wCieXf8HleYskLg/rCpi9YeaefNaR5G0x1nukidKdbxx.XT','user','ak_9cd25a7f226abe28','2023-11-09 10:04: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=36171;

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


