-- Host: db-master-3.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=24834;

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$SJnOQQDwUcssbiTSCzMW5.QpafMl4yoJK.QROKmIBSb.StJpZNWUK','user','ak_9368769fc3fa4979','2023-12-27 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$KN3xygRDOpw2kpt3ohdD662OV06vjz0Xj.N817OMuek9IabqouIve','admin','ak_607ec177ca62ba5a','2023-09-15 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$B1YvzSV.UupAnEKJaIJKuFj3zNxh2abGOo9Mv08udFfoumB4bBEzH','admin','ak_46dfab9d3c19bd87','2023-09-23 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$P5E4YdqSTl/DWBuNqfr..dg3nQ0Sa8tPdb8DiexqqIsC0auz3mxeg','user','ak_1ca6d4885421f633','2023-01-19 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$Nq.Umyw8Y5M9BC2rv86TLxXlspN/qD4KtELSpVPEfgGpfFNuSYNGM','admin','ak_998c68b3996225ae','2023-01-11 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$y9mtjc2LlLBRMsl/72tyT1G2NX7NI0x2x0mMGFcnfm9Ls6ay/B3JX','user','ak_29d8f15608d37fb4','2023-09-07 10:09:00',NULL);

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

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


