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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$rekf2hmL8KjN/6cPjF7QENQT/yHDHBioBZroxA8MO9ZfASqHkUrfP','user','ak_483617dce5a4c174','2023-07-07 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$RZ1RiKhYnuL54HIqfUCu4ViEt57DYKrJN0tXmWUoUVTjc3cC5T7lH','user','ak_76e792a8abc9a29d','2023-04-28 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$4w5FLd3dUTIJYES/U4F6j1jDDcb5ISbaMyXtM4VOiPrX7R/JYzVfD','admin','ak_ed1a2b6816bfddbc','2023-11-24 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$UsQ.sADBe5oTIcAZM5O11U/pvAyAcP4JPUTbjeEM9dzFuV9P3MC2L','admin','ak_6790674bf13ea2b0','2023-01-10 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$pPKLOzJFcFHDQHgdak8E/205mb2rVwgMhLzw77jDCrmoyAg6U3MgB','user','ak_348de0b88f28f8ff','2023-05-25 10:15: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=26529;

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


