-- Host: db-master-1.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=10157;

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$eFPDLx1N/.9GsZ0.xd5QnyYgINY529BvhcIbgTnnTg13RO6s1SQDp','admin','ak_38da3e3de38d2067','2023-08-14 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$eQewcI/E1CqwsnRpxclJ5FBzfwqk1IVWY8R4F1HOlHvxWd6aQd3SH','user','ak_03a119307d3fc568','2023-03-27 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$.8Cx4XIdc42GfSOqfu3GaekrATEYc4uSAlwA3GN7OrfiuZyZzKzHu','user','ak_b1863b872a80202d','2023-12-02 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$swGjCrujewARn9VuL2ptFqGtV4mKLZJg7S2p9iEV6dDJHrEC9Ypbb','admin','ak_637eaa56dcb98dc8','2023-08-28 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$7rHPExI/3w8M/9OGTHXmHqi9S3nHA2KBjUqOkXthiXYbIPpzJt2e3','admin','ak_edd19415d4a6adf5','2023-09-13 10:15: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=48386;

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

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


