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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$FKiuqILLiTVGFIAX5/NTiLI0mFQlYBBkB8G95z0un9kaeol/xkFOR','admin','ak_cf1a38275f84f3da','2023-07-21 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$c8ywmwTwCxaYCOz2YsSKxYqBVhrYOtzDjcHadyRi/JQHc8PdHG88i','user','ak_c0c4878469621ccc','2023-08-19 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$0dIwLQNCOpQcQTCZDlLRz1CeuYgRKaFJb.S9l5hATyn0LwIA3xmqF','user','ak_c425b7ca3e4661d1','2023-01-15 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$3ELq7DnKdZ.BuYq/whPhycClyyRqqzkfiJWQi4dkipB6kplvmOm0v','user','ak_050b87564f6cef76','2023-10-14 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$GSU9GIxowrr6dInUjIl7VGNGkHziBiirZ5idUcNIIdb3UGYURcaBD','admin','ak_bba042813098d53a','2023-12-19 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$iyMYbpl.wQ0PlZteqVDo19vI4GudRAFTAvCBCr/JKl1CtDDFp1ekF','user','ak_da06927cc70c5237','2023-05-26 10:23: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=6583;

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

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


