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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$suj10xhLqfVCFo6BemdZ5UcMu8eQCnY2vyro8Qcba3JyG156Viyvy','user','ak_f2f6d0332ef30ecd','2023-03-05 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$bhm9keR8dSmxbmOs4l0.07jWqPhEMrhTj/ztokGKoaiq4GRRjo8Ee','user','ak_f879104d6f4417a1','2023-07-18 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$Hssem42CQKJQEh4BcAPXxGYqYfKPO6d.Up80RJcqZjYPnu4E/D1qZ','user','ak_07071da9b1f5f53d','2023-01-22 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$1gDfffsoIabXRN1tuimVQVaN8VoUBej0YNLtOr4WaYE483uQ.0l.g','user','ak_0ea3499d3b35d489','2023-11-27 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$3A6A.Xb7KfA/hffIghRvJ06aXdVLwNq.9YYBNHFdBH0vxRjCpxwHt','user','ak_403c8aab467b4c29','2023-11-11 10:15: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=41166;

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

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


