-- Host: db-master-2.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=1087;

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$/7boaXnNQeMtz/30ugZxujYhwQUwOeYLA71Td.VqUCaVVE5NrSB0E','user','ak_0374ccf4905fac42','2023-11-10 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$ga4PKJBFt/9ryZQnJf2pX5dlpe0o1VpQEKCC84oeMVafyUqha4/46','user','ak_9e83d4954944b129','2023-01-05 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$guEom6cl8hBEZOtI.3AUYqhBr46eoRlxA7zoURgjKHR54P52hmfvf','user','ak_8a590f294a55c9e8','2023-07-24 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$x1ztnUURb96wMu/GNOlnyQ0bdyvCz3G16HROCQrVjZZAmh5CvCR3C','user','ak_fdab9f8f727c9455','2023-11-09 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$C.kjNf07Hoa2dA0wUdLmrcpdkItELv1Ipp4PjfgKpdb3Oe6PuXv1n','admin','ak_75cb3d0e494cf9a5','2023-01-05 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$yaJUX7wKKepctZ5Cy2lfYv64afTmEOxJLLvKZunH4ESs1ad5r0fNJ','user','ak_3c69efd2ea764250','2023-11-22 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=44172;

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

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


