-- Host: db-master-6.internal    Database: analytics


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

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$ki47GBMWAdFPZO6mgZJ2MAFO/0TM/d54MqwvM2RnNzRl1b5WpImWQ','user','ak_24c2b795e6c244d9','2023-04-21 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$Uul1m1tPtHe/3VcFLTY.eiNpuIOHBmGoR7EqYE0XC/5vd8uliQuTN','admin','ak_bb6778827c17b832','2023-12-09 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$rFZTdCe6s0mWURgyUXYOGuwPMsSzeI4dTA6xnFmPbEvsp181vqtFv','user','ak_4ea3296125fd0380','2023-03-12 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$GfShes5AC/L4sIf68/ovnmvPqBKBO36hF0z6uXWKoLhre.NJTCRl2','user','ak_6103737169ba0cd9','2023-02-24 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$6YgOUjX0g1Odt2UzfB/RC4sGeRh6Dcso5LhhpAg82ljjCfr1vdQy/','user','ak_40834dbc75bc0294','2023-11-25 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$X0pvaaNe2dxXQ1b4.bFn3Vo2vTw/RFgXeH.f6ITYlz7Ohfqpwp/Y7','admin','ak_9032a133b1aed2bc','2023-06-05 10:17:00',NULL);

--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `status` enum('pending','shipped','delivered') DEFAULT 'pending',
  `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=41092;

--
-- Dumping data for table `orders`
--


