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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$DECwlO9eaON6rr/hEAgjfQa2NVnFAn9GfKzSrFc03FIm8x.R2UZTd','admin','ak_a6ea5fb8aa5ed2c0','2023-05-02 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$AujywCQ2nX5iDWkxNAQHD/LHdN9ymkmHhkQsvniamzl6gQ57AvVMd','admin','ak_f243760b9f27ca59','2023-04-07 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$8zgkAcqVAeA6yO.rHzZ4cjOLV6I9tw26F1Q5laD8qWapxUuJ8zCBP','user','ak_cee102e97d5f1ef1','2023-12-10 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$KjXk8igGd.EJqM00byPs9o6Y6HALk8.Y2e6ucmvwDOlp./jU6hNss','admin','ak_21560eeaf7d309cf','2023-07-21 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$4j2InpLW5mzxqhtR.e8jZjOluMrRxtqxq/juH0UgF5LdGOVJnMjx3','user','ak_7b3a7993aca0fef1','2023-06-02 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$hKuOjsHa8ye5OKGU.sGp14sBU0ZUfb/mFDyX/5z89Dc9IBhJZVncp','user','ak_6a3318612a2f16e1','2023-05-04 10:10: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=49774;

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


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

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


