-- Host: db-master-3.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=49486;

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$zRoJ4DfKNoM05bdThh0vz/0loXhT2rivGNzZm6ZoLcy5Y4.9uoJIO','user','ak_ac1070c0d0624dd9','2023-02-17 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$OuHmv9pFCkxfIz0NATH8xjSt/CXvl6/HK3G.urEXd8/PzU0oAqx1n','user','ak_257a46a6aba71c26','2023-02-10 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$0nRxxsFargdZ4p3O6tlNr7WGGyHM9BY89EkClGxYPyJkDcAHvB63p','user','ak_357e555d1484865b','2023-10-11 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$fXZ2mjGfPc7Ky4c.PyvoqzU4R4NTx9Nv0XJ38YAiCIt78IScm86DD','user','ak_6073eb9e654100ad','2023-10-01 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$kpHRnEvMCEVelqNsmeeLbDfk26yBRiLBl7xN4Lrj6FdxEubheNQxc','admin','ak_0e08c7b2bedfb219','2023-07-26 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@example.org','$2b$12$hQtwqHzt/w.llb3WfcEVEJEMqDD1DmBYWN3dEvTuBjFh1.OO5teKh','user','ak_953acd83fdead76e','2023-02-12 10:05: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=33795;

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


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

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


