-- Host: db-master-4.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=10660;

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$BxnF4f8jA0O3QviaZ0Cx72F1TcUey7VYtlX6gy7qvuDmn2Ns2Z7UE','user','ak_44a0e02f80a51623','2023-09-09 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$u3kRtMlN7UpuLHRrvzwpuf85S9bWIdqYoCMGplBiCch726jPt5wi3','user','ak_fce69c53bbc8b536','2023-02-14 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$Cf22O0bZ0M1.Vu1EK4kJiNy9NESc/pQyo3fnGz5qT5AtP9h40gUGv','admin','ak_5fab1905e89432ca','2023-02-11 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$0BCXVh7l80N.bQ.rOknAaNsLqppVjETrj3R6ji/P.YQlV4VU.1hy6','user','ak_1144ea8711fd244d','2023-09-20 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$iW4nt.BQctr2SznZ3PgyA2TQFxr43ZS22SezHtuoqjRHW0664HbU2','user','ak_b3366973702c4190','2023-04-07 10:20: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=45443;

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


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

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


