-- Host: db-master-0.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=24216;

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$1M6FFic6baRduGYcBsCMtniNO0RSzQ.jJnou3jiTaZZ2lI8.O0ZDB','user','ak_7d80dc3670a68465','2023-02-12 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$Ti9F4RjilEBFb8zrq95Q//DzlAx9eO4.ph1TNy/HU/mAmfYoqg6jh','admin','ak_371aacc6e9195c85','2023-09-04 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$UscvsclFtKYuMgtcDrAdQS/Co.ASPfcRrlnp0WuOIttw7tvxZwwdx','user','ak_78ffc8d69d0e71ef','2023-11-13 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$HXe33g7GVtLc7B4GxW4ySOZ9TCQeRVt3sFB7FHo5iJ5fiKgHirzyO','user','ak_af48f1066f8fe501','2023-02-24 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$1qYnu6cmezcddaVkvspHC.O3Qdr76si5a4IWUKzcR2y4XX1j195B2','user','ak_9265ad9661442657','2023-02-09 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$M/4O9DJShaqFLARJshG9drT9pbD.9vGRntWx.ac75Q6mQ2UllozZq','user','ak_974bc3451e8bd686','2023-04-18 10:02: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=25835;

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


