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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$uLa9nrrbRBG/wZ6oDOyQPQo8V22QSKjzpQVqUnSujGmjKHgMxm1eo','user','ak_930f39182fcc68bd','2023-05-18 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$ntO8pC0HCIaUE58sluPeKUJdK9L5u5E90CBRhQuvT1Tt4.gj0Y/.h','admin','ak_5ce8110446ef08ef','2023-01-04 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$mPR3Ky4sBfMfq5O.v.qYF8ujD3jRtwHngpG2YZIC8I6robuPgpT.g','user','ak_3627c509bb6c5024','2023-08-17 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$ODdGoJL8YWPrZ/Qn4ynZUYB3v2uro5KiLwmK2mc9TL4KxhdPqZnsy','user','ak_50ed04ec767d6e9f','2023-11-18 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$7J.vepgLe0xCO2uG6p1Phf03/B.iXSIGe.0z8abmW5J6oSNfC4Qj1','user','ak_027760d57b9aa0a7','2023-08-16 10:13: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=10925;

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

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


