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


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

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=44817;

--
-- Dumping data for table `products`
--


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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$oSd1jvHFf6EFEja6AzpRtMziiCB17oTb9ccZffuItYjkdCyL1gEBJ','admin','ak_973df72e043dd837','2023-03-27 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$OtZTFbmv9ebDClLp87HqN2cZmt3o5EhstmJ3TkmcGd7DVUhJFgMYB','user','ak_129fa6de57b48ecf','2023-09-11 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$/PDjA5qpwlfzOQvaOXv0wrPVsTzMmy3QJtIYpuo6PJOLvATCP2yPb','admin','ak_ef69b0b298ba94b8','2023-03-28 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$rHcTPFTFC37Vuwy4mZmFBg2Pyaiy2rPKsOW4v/x7z11jgYHoIa/W7','user','ak_9274bad171cd5373','2023-05-17 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$aHBvXKcdH/TvmRIyLDNaUypQA46GhYsHYVHFGIiI70RLIsPW/fYwm','user','ak_e6a83c80ab84b951','2023-05-09 10:10:00',NULL);

